[snip]
Well getting closer now, its inserting into the tables but they are
blank
(no text)
[/snip]

let's go short...(and watch for/avoid keywords like 'name')
form.php

<form action="input.php" method="POST">
<input type="text" name="username">
<input type="submit" name="submit" value="Submit">
</form>

input.php
<?php
$username = $_POST['username'];
echo $username . "<br>\n";

$sql = "INSERT INTO whosaid (username) VALUES ('" . $username . "');
if(!($insert = mysql_query($sql, $yourConnectionString))){
        echo mysql_error . "\n";
        exit();
}
?>
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to