|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
=============
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 |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > form help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|