
November 7th, 1999, 01:20 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
This is basicly done like this:
The form sends it values like this to the action url:
http://url.to.action/script.php3?name=dirk&country=Holland
This would be if the textinputs in your html form where name and country.
In php you can get the so called query string (the part after the ?) into a variable using this syntax:
$query = getenv("QUERY_STRING");
now $query will contain this:
name=dirk&country=Holland
Not really handy yet... But by using the explode function, you can get something usefull out of it:
$values = explode("&", $query);
$name = explode("=", $values[0]);
$name = $name[1];
$country = explode("=", $values[1]);
$country = $country[1];
Now $name has the value dirk and $country holland...
Now you want this in your database.. depends very on what kind of database you use.. I suggest you read the manual found on devshed.com carefully, also on the subject how to get the output from html forms into php3....
Hope this gets you started...
Grtz,
Dirk
|