Methord="POST" doesn't work
Posted: Tue Nov 02, 2004 5:19 am
Dear All,
I have installed PHP on a win2000 machine. The problem is that I cant pass data (Form variables) from one page to another with "POST" methord. At the same time the "GET" Methord works.
But I later came to know that I could use this code to over come the problem:
But I have used PHP on a UNIX server where I need not use this code. I could use the variable directly.
Could any one tell me why this is so?
My register_globals is off
Thank you
Weirdan | I request you to limit the amount of markup you use in your posts.
Weirdan | Help us, help you. Please use
I have installed PHP on a win2000 machine. The problem is that I cant pass data (Form variables) from one page to another with "POST" methord. At the same time the "GET" Methord works.
But I later came to know that I could use this code to over come the problem:
Code: Select all
<form.....>
<input type=textbox name="NAME_OF_CONTROL">
</form>Code: Select all
<?php
$variable = $HTTP_GET_VARS['NAME_OF_CONTROL'];
?>Code: Select all
<?php echo $NAME_OF_CONTROL; ?>My register_globals is off
Thank you
Weirdan | I request you to limit the amount of markup you use in your posts.
Weirdan | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]