|
Posted by J.O. Aho on 06/16/07 21:39
Cigar2011 wrote:
> I will try to be short and to the point.(good Luck) I have a form
> written in HTML. I have a Mysql database. I am using a linux server
> and I would like to use php to write the following code:
>
> After the user inputs their name, address, email, phone, etc. in my
> html form. They will hit the submit button. I need for the
> information
> they entered to go into my database.
1. you capture the values from the form with $_POST/$_GET/$_REQUEST, see
http://www.php.net/manual/en/reserved.variables.php
2. connect to the database
http://www.php.net/manual/en/function.mysql-connect.php
http://www.php.net/manual/en/function.mysql-select-db.php
3. Use sql query to insert the data to the database
http://www.php.net/manual/en/function.mysql-query.php
> I have looked now for about 12 hours and haven't been able to find an
> answer. I know I must be missing something since I've been to the w3
> site, codewalkers, phpfreaks,php.net(?), and many more.
And all you need to know was at www.php.net
--
//Aho
[Back to original message]
|