taishomarou
2010-10-02 17:31:50 UTC
With a "user name", "title", and "message" wherein users can input information, and click the "submit" button. Then I made a PHP page where it's supposed to output the inputted info, but I just keep getting this:
Notice: Undefined index: uname in C:\wamp\www\forumpost.php on line 5
Notice: Undefined index: topic in C:\wamp\www\forumpost.php on line 6
Notice: Undefined index: comment in C:\wamp\www\forumpost.php on line 7
This is what I put on the button in my form made in Flash:
on (release) {
getURL("http://localhost/forumpost.php", "", "POST");
}
I named my input texts "uname", "topic" and "comment".
And this is what I put on my PHP page named "forumpost.php":
$uname=$_POST["uname"];
$topic=$_POST["topic"];
$comment=$_POST["comment"];
echo "Welcome".$uname."";
echo "Title:".$topic."";
echo "Message:".$comment."";
?>
How do I get it to output the info on the PHP page correctly? Help please. Thankyou. :(