Need help guys.
I have a form and want the form data to save to mysql data base. I looked this shit up but could never find nothing, used the tutorials but none of them worked.
Could you also explain whats happening with the php code please?
I don't see any PHP code.
Name:
Anonymous2012-10-03 0:26
use the php to save the submitted form to yoursql data base
Name:
Anonymous2012-10-03 0:29
>>3
Ya i am doing that but every php code i am using doesn't work.
Sorry I should have been more direct could you make the php code that saves it to mysql data base?
Name:
Anonymous2012-10-03 0:34
>>3
You'll find that in every PHP tutorial for beginners. Read the whole thing.
>>5
Thats what I thought too, but they explain whats going on and everything but their examples aren't what kind of stuff i am trying to do. I have been using the w3schools tutorials on php. They have great php tutorials but is their a better site to explain php?
>>16 >>19
You started writing the line mysql_query("INSERT INTO Persons (name, comment) and then just stop the PHP with ?>. Why didn't you add the end of the string and the closing paren, and semicolon? And the rest of the PHP code after that...
I don't know about your PHP, but you're missing the table tags, so the tr and td don't have any effect. If you're writing HTML, you don't need the tr or td close tags. If you're writing XHTML, make your input self-closing. <form method="post" action="input.php">
<table>
<tr><td>Name<td><input type="text" name="name" size="20">
<tr><td>Comment<td><input type="text" name="comment" size="90">
<tr><td><td align="right"><input type="submit" name="submit" value="Sent">
</table>
</form>