By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,708 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,708 IT Pros & Developers. It's quick & easy.

set POST using GET

P: 60
hi,

i would like to know how I can set the $_POST[store] to the $_GET[store] passed from the previous page
would it be something like:

Expand|Select|Wrap|Line Numbers
  1. set($_POST['store'] = $_GET['store']); 
  2.  
thanks in advance,
geebee
Feb 11 '09 #1
Share this Question
Share on Google+
6 Replies


Markus
Expert 5K+
P: 6,050
Assign it as you would any other variable.

Expand|Select|Wrap|Line Numbers
  1.  
  2. $_POST['index'] = $_GET['index'];
  3.  
  4.  
Feb 11 '09 #2

P: 60
thanks. thats helps.
Feb 11 '09 #3

Markus
Expert 5K+
P: 6,050
@geraldjr30
Glad I could help.
Feb 12 '09 #4

xaxis
P: 15
I'm simply curious, under what context are you needing/wanting to do this?
Feb 13 '09 #5

Markus
Expert 5K+
P: 6,050
@xaxis
I thought the same..
Feb 13 '09 #6

Atli
Expert 5K+
P: 5,058
Yea, this seems an odd thing to want to do.
Feb 13 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.