my signup2.php was just a tiny little script to add data to a mysql database, it is just any old form processing script. I used:
Quote:
<?php
require ("config.php");
$mysql_link = mysql_connect("$servername", "$dbusername", "$dbpassword");
mysql_select_db($dbname, $mysql_link);
$sql = mysql_query (
"INSERT INTO table2 SET " .
"name='$name', " .
"email='$email', " .
"description='$description'");
if ($sql) {
echo("<P>Your details have been added</P>");
} else {
echo("<P>Error adding details: " .
mysql_error() . "</P>");
}
?>
|
just to test it.
$name and $email and $description are what need to be sent to the script by the form, or in our case from the form sent internally by singup.php
You need to remember that signup.php (ie this form thing we included in it) is just mimicking any old normal form, like the one you are typing here. I could for example, make a script that sent a form request to vbulletin to post a new thread or something like that, that is all that you are doing.
I will do the ICQ thing when i get on it, i am very sporadic in using it as it wastes far to much of my time