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" <[EMAIL PROTECTED]> wrote in message
002501c10f17$876cbf40$2afeb3d1@default">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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to