I have no idea why there is an error.. please advice.
Posted: Mon Sep 21, 2009 11:38 pm
learn.php
----------
<?php
$input = $_POST['msg'];
echo "You said: $input";
?>
index.html
-----------
<form action="learn.php" method="post">
Enter your message: <input type="text" name"msg" size="30" />
<input type="submit" value="send" />
</form>
After i input words and send/submit. This error appears when i preview it in DW:
Notice: Undefined index: msg in C:\localhost\learn.php on line 11
You said:
Or it shows a blank page when I access the file in my folder.
Thanks alot.
----------
<?php
$input = $_POST['msg'];
echo "You said: $input";
?>
index.html
-----------
<form action="learn.php" method="post">
Enter your message: <input type="text" name"msg" size="30" />
<input type="submit" value="send" />
</form>
After i input words and send/submit. This error appears when i preview it in DW:
Notice: Undefined index: msg in C:\localhost\learn.php on line 11
You said:
Or it shows a blank page when I access the file in my folder.
Thanks alot.