You are here: Re: Capturing form input « PHP SQL « IT news, forums, messages
Re: Capturing form input

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация