Jump to content

[SOLVED] Correct way to write this...


DBookatay

Recommended Posts

This should help inform you:

<?php


if(isset($_POST['test']))
{
echo "passed<br>";
}
if ($_POST['test'] == NULL)
{
echo "something<br>";
}
if(empty($_POST['test']))
{
echo "pass<br>";
}

print "<html><head></head><body>";

print "<form action='test2.php' method='POST'><input type='text' name='test'><input type='submit' value='send'></form>";

print "</body></html>";

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.