Re: Force new page in browser and wait commands
| From: | elias | Date: | Wed, 18 Jul 2001 08:12:08 +0000 |
| Subject: | Re: Force new page in browser and wait commands | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58398@lists.php.net to get a copy of this message | ||
a simple example:
<?php
if (isset($submit))
{
// process something here with all form's variable
//example:
echo "<!-- This page is created for $username -->";
}
?>
<html>
<head><title>test!</title></head>
<body>
<form>
name:<input type="text" name="username"><br>
<input type="submit" name="submit">
</body>
</html>
In this example you won't see the comment in the start of the page unless
the user processes the form.
"Hugh Danaher" <hdanaher@earthlink.net> wrote in message
news:002501c10f17$876cbf40$2afeb3d1@default...
Help, I'm new to php, and to writing software in general. Enough said on
that. What I want to do, is to have my program wait for user input on a
<form> and once data is submitted, to have the browser (IE5) generate a new
page. Right now, my program runs straight through input forms and appends
everything to the existing page. I now accomplish this by running several
connected php programs, but want to do it in one program. I've looked
throughout the php manual and website but have yet to find the right
commands.
Your help is greatly appreciated.
Hugh