PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
cannot access form variables Posted by Dany on 27 Jun 2004 at 6:25 AM
Hello there, I am learning php (as a beginner, but not beginner programmer) and I am having difficulty accessing form vairables.
I have an html page with the code:
<input type="text" name="orderNumber" size="10" maxlength="5">
and it's action is to submit to processOrder.php which WILL NOT output when I write:
<?php echo $HTTP_POST_VARS['orderNumber']; ?>
(cannot see the prderNumber variable)
why is that? I tried other scripting styles and it doesn't work, under that I have the line:
<?php echo date('H:i, jS F'); ?>
which does work so I can see the php is working.
What can be the problem?? thank you!
Dany
Report
Re: cannot access form variables Posted by netgert on 28 Jun 2004 at 12:12 AM
: Hello there, I am learning php (as a beginner, but not beginner programmer) and I am having difficulty accessing form vairables.
: I have an html page with the code:
: <input type="text" name="orderNumber" size="10" maxlength="5">
: and it's action is to submit to processOrder.php which WILL NOT output when I write:
: <?php echo $HTTP_POST_VARS['orderNumber']; ?>
: (cannot see the prderNumber variable)
: why is that? I tried other scripting styles and it doesn't work, under that I have the line:
: <?php echo date('H:i, jS F'); ?>
: which does work so I can see the php is working.
: What can be the problem?? thank you!
: Dany
:
the <form>-tag should look like this:
<form action="processOrder.php" method="POST">

NetGert[/italic]





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.