Register globals once again

Status
Not open for further replies.

avto25

New Member
Messages
1
Reaction score
0
Points
0
Hi! I'm not so modern and got used to write "old codes". ;)
So, tell me please, how to send data from form to another page when Register_globals is off?

I meant in file 1.php:

<form action="2.php" method="POST"> ---///"GET" - whatever///---
<input type="text" size="5" name="word">
<input type="submit" value="Send to 2.php">
</form>

When Register_globals is off - we can't get the definition
of "word" variable in 2.php

Thank you!
Edit:
When Register_globals is off - we can't get the definition
of "word" variable in 2.php


I found it. It comes into $_POST['word']
Edit:
I wonder how to make such transformations automatically:

$_GET['a'] => $a
$_POST['b'] => $b
$HTTP_COOKIE_VARS['c'] => $c

Any ideas?
 
Last edited:

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
If you use "$_REQUEST" you can get them from GET and POST at the same time.
 
Status
Not open for further replies.
Top