Posted by Andre Frashek on 11/19/60 11:45
squash@peoriadesignweb.com wrote:
> <?php
>
> if ( isset ( $_REQUEST['message'] )) echo '<h3> Hello World </h3>';
>
> echo "<form action=test.php method=post>
> <input type=text name=message value='lynx abc'>
> <input type=submit value='Click here to see Hello World'>
> </form>
>
> <p> Type anything in place of 'lynx abc' and the script will work!";
>
> ?>
>
Hi, the script won´t work, because you forgot the curly braces in your
if instruction and IMHO some quotes. This works good for me:
<?php
if (isset($_REQUEST['message'])) {
echo '<h3>Hello World</h3>';
}
echo ' <form action="test.php" method="post">
<input type="text" name="message" value="lynx abc">
<input type="submit" value="Click here to see Hello World">
</form>
<p>Type anything in place of "lynx abc" and the script will work!</p>
';
?>
[Back to original message]
|