re-POSTing variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

re-POSTing variables

Post by Unipus »

man, serious headfog this afternoon.

I have a form. When this form is submitted, it goes to another page to process the results. The problem is, the form is sometimes auto-submitted by the changing of a pulldown element. I can detect when the submission has happened this way, of course, and immediately redirect the user back to the original form, as it should be, BUT.

But I can't then send back all the form info that it needs to complete itself again with the previous values. I could of course do this by converting all my Post vars to Get, but I really want to avoid that. Is there a way to re-post all of my variables back to the other page?

The only idea I've had so far is ANOTHER form set to post on the update page, set to autosubmit back to the original page. But that doesn't sound so appealing to me, really.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

You could create an array in $_SESSION that contains the form names and values if worse comes to worse.
Post Reply