Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty Form Fields

Status
Not open for further replies.

buzzt

Programmer
Oct 17, 2002
171
CA
I have been trying to get my MySQL database to apply a default value when an empty form field is submitted (this has worked for me on other servers), but it does not work on the server I am currently working on.

The ISP admin has suggested that I write a php script (rather that have them modify their MySQL installation) to write the value I want to specify when an empty form field is submitted.

There 12 columns in the table I am writing to. I was trying to set up some sort of array, rather than handle all the variables 1 at a time, but I have had no luck so far.

Anyone have any ideas?
 
The field which is not applying a default...does the table definition have a default value for that column?

How are you trying to use the array to input values? ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top