[Xitami] posting FORM to PHP script

Scott Daniels scottdan at gmail.com
Tue Mar 28 23:46:32 CEST 2006


I cannot read the variables POSTed by a FORM to my PHP script.
Example:

File: form.htm
<form action="foo.php" method="post">
    Name:  <input type="text" name="username" /><br />
    Email: <input type="text" name="email" /><br />
    <input type="submit" name="submit" value="Submit me!" />
</form>

File: foo.php
<?php
   echo "USERNAME >"; echo $_POST['username']; echo "<";
   echo $_REQUEST['username'];

   import_request_variables('p', 'p_');
   echo $p_username;
?>

The foo script prints out:
USERNAME ><

I am running HP 5; and have set up the "Filter" section in Xitami to
point to php.exe; for PHP, I set 'register_globals = On' in the
php.ini file.

Have checked the various FAQs and online manuals.
Just what am I doing wrong?
thanks in advance
scott



More information about the Xitami mailing list