Question : Lightest fasted method of sending data back to the server

Dear Experts,

I have a webpage which has many text fields.  I would like to send this data back to the server using POST, but how do I package this data in a simple method which can be used on the server in a simple method which does not require parsing the data before it can be used.

Any suggestions will be helpful

Thanks.

Answer : Lightest fasted method of sending data back to the server

IF you wish to preserve it as-is on the submission page you could simple write $_POST to a $_SESSION variable.

$_SESSION['lastFormPost'] = $_POST;

would copy post into the session variable and then use the session variable to do what you want with, and when you are finished with it do unset($_SESSION['lastFormPost']); to remove it.
Random Solutions  
 
programming4us programming4us