set POST using GET – PHP

  php

Q(Question):

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:


set($_POST['store'] = $_GET['store']);

thanks in advance,
geebee

A(Answer):

Assign it as you would any other variable.


$_POST['index'] = $_GET['index'];

A(Answer):

thanks. thats helps.

A(Answer):

@geraldjr30

Glad I could help.

A(Answer):

I’m simply curious, under what context are you needing/wanting to do this?

A(Answer):

@xaxis

I thought the same..

A(Answer):

Yea, this seems an odd thing to want to do.

LEAVE A COMMENT