| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| New Member | I am trying to get a form to submit to a mysql database. I can get the text boxes to submit Code: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> Code: <textarea rows="20" cols="50"> The cat was playing in the garden. </textarea> |
| |
| | #2 (permalink) |
| Traveller | looks like you are missing the name attribute on the textarea?
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
| | #4 (permalink) |
| Traveller | I think you'll want something like this: Code: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Age: <input type="text" name="age" /> Some Text:<textarea name="mytextarea" rows="20" cols="50"></textarea> <input type="submit" /> </form>
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
| | #6 (permalink) |
| Traveller | You may find this helpful: http://www.tizag.com/mysqlTutorial/mysqlquery.php
__________________ Internet.geek.nz NameCooler.com Unlimited Domain Name Web Hosting Travel Money Rates |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |