NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page quick HTML question

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-21-2007, 02:30 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: May 2007
Posts: 19
GPGrieco is an unknown quantity at this point
 



Question quick HTML question


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>
But I can't figure out how to get a text area to submit
????: NamePros.com http://www.namepros.com/programming/364680-quick-html-question.html

Code:
<textarea rows="20" cols="50"> The cat was playing in the garden. </textarea>
Any help is appriciated. Sorry if this is a stupid question.
GPGrieco is offline  
Old 08-21-2007, 02:41 PM   #2 (permalink)
Traveller
 
-NC-'s Avatar
Join Date: Mar 2007
Location: Yet another city
Posts: 1,419
-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future
 


Animal Cruelty Animal Rescue Ethan Allen Fund Protect Our Planet
looks like you are missing the name attribute on the textarea?
__________________
NameCooler.com
-NC- is offline  
Old 08-21-2007, 02:54 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: May 2007
Posts: 19
GPGrieco is an unknown quantity at this point
 



well, I only know basic html, and now that I look at that I see that. Could you give me an example of what the code should look like? I just need a text area that will submit to insert.php
GPGrieco is offline  
Old 08-21-2007, 03:08 PM   #4 (permalink)
Traveller
 
-NC-'s Avatar
Join Date: Mar 2007
Location: Yet another city
Posts: 1,419
-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future
 


Animal Cruelty Animal Rescue Ethan Allen Fund Protect Our Planet
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>
Change "mytextarea" to whatever name is used for the field in insert.php
__________________
NameCooler.com
-NC- is offline  
Old 08-21-2007, 03:14 PM THREAD STARTER               #5 (permalink)
New Member
Join Date: May 2007
Posts: 19
GPGrieco is an unknown quantity at this point
 



Ok, thanks a bunch.

One more question. How would I make everything show what is in the database when you load the page?
GPGrieco is offline  
Old 08-22-2007, 02:26 AM   #6 (permalink)
Traveller
 
-NC-'s Avatar
Join Date: Mar 2007
Location: Yet another city
Posts: 1,419
-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future-NC- has a brilliant future
 


Animal Cruelty Animal Rescue Ethan Allen Fund Protect Our Planet
You may find this helpful:
http://www.tizag.com/mysqlTutorial/mysqlquery.php
__________________
NameCooler.com
-NC- is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:07 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger