twitter




Saturday, October 24, 2009

PHP/MYSQL Question?

I have two domain names both hosted at Godaddy. I have an HTML form with 16 fields that user can access and register online. This form works without any problem at one of those domains; but does not work at the other one!!! I have created the corresponding tables on both domains using the same PHP script. The form is submitted without any problem at one, but the other one only the auto increment works yet all other fields are empty.



Appreciate any help.



PHP/MYSQL Question?





Likely a typo somewhere in your script.



Check :



Are you submitting to the proper url in the form Action tag?



%26lt;form action=%26quot;correct_url.php%26quot;%26gt;



Did you make a typo in the $_REQUEST[..] or $_GET[..] fields



Based on your description it sounds like the database connection is working properly..



Good luck



PHP/MYSQL Question?



It sounds like a typo to me, but you have not really given me much to go on, are you getting any error messages?



Other Replys:There has to be some difference either in table layout or the insert script, without seeing the script it is impossible to tell. Try adding a die(mysql_error(); as the end of the query, this may show something, otherwise try a line to echo the variable names followed by the variable value, then an exit statement on the line before the insert. This will determine if your data is being read correctly.

No comments:

Post a Comment