OK, I wrote this code for messages under Web Expression 4, could anyone help me why I get a blank screen? With no results from code.
Untitled 1 <?php // retrieve from data $input = $input = $_Post['msg']; //use it echo "You said: $input"; ?>ss
OK, I wrote this code for messages under Web Expression 4, could anyone help me why I get a blank screen? With no results from code.
Untitled 1 <?php // retrieve from data $input = $input = $_Post['msg']; //use it echo "You said: $input"; ?>ss
umm the ss at the bottom acidently got there when I writing this code in the post.
check your POST is working, try
[php]
if(isset($_POST[‘msg’])) {
// retrieve from data
$input = $_POST['msg'];
if($input == "") {
echo "msg is empty";
} else {
//use it
echo "You said: <i>$input</i>";
}
} else {
echo "POST not working";
}
[/php]