MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 8th, 1999, 10:57 AM
tigertim
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Please help me, I am using PHP and MySql and want to know how to take input from an html form and place it in my database.

Thanks
Tim

Reply With Quote
  #2  
Old November 8th, 1999, 11:57 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
=============
page1.html:

<form action="page2.php3" method="post">
<input type=text name="name">
<input type=text name="sex">
<input type=submit>
</form>

============
page2.php3:

(assume you've connected to mysql and selected appropriate database)

$result=mysql_query("insert into your_table values('$name','$sex')");
if (!$result)
{
//an error occured... do something!
exit;
}

// insert succeeded ... do something else

========

HTH

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > form help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway