Hi
just wondering if some one can help me.
problem 1
I am writing data from a html form into the database.
The problems i am having are with the strings that use the html text tab i.e.
<input type=text name=address1 size=30>
I basically want to write the data entered in that variable into a database costomer table field called address_line1
What happens is that the data is store but only up the first space in the variable i.e.
if i want to store :
31 Ham Street
It would only store 31 and craps out after the first space, what can i do about this.
Problem 2
Also in the customer table i have a number of fields that are set to NULL i.e. a telephone number.
But if i do a select statement and recall the phone number, it always missis the first '0' i.e. if i enter 01234, it would return on a select statement after an insert 1234 in addition, if i dont want to store any values in that field, it returns '0' for some reason even when in the table there is default value.
I know it seems alot but can somone help me please.
Many Thanks