[Xitami] posting FORM to PHP script
Martin Bleisteiner
mail at bleisteiner.net
Wed Mar 29 07:18:20 CEST 2006
The variables may be $_POST['username']
Which version of Xitami do you use?
----- Original Message ---------------
Subject: [Xitami] posting FORM to PHP script
From: "Scott Daniels" <scottdan at gmail.com>
Date: Tue, 28 Mar 2006 16:46:32 -0500
To: xitami at lists.xitami.org
>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
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
More information about the Xitami
mailing list