Forum Moderators: coopster
Someone submits a form with data. I want to process the data, then once I'm done with it, take two of the variables, make them post variables and basically redirect the browser as if the user pressed the submit button with data filled in.
The variables can't appear in the url.
Below that then use some javascript to submit the form.
If i have understood what you want correctly that should work.. i have used that before
Ally
use
header("location: page.php?var1=value&var2=value");
however, the var1 and var2 would be shown in the URL, for this you can use Sessions like after performaing your operation on form variables then register those two variables in session and use again "header" to go to the other page and then use $_SESSION to use those variables. cookies can be another way too.
does anyone knows a way with which we can use header to redirect but without showing variables in url? in first place is it possible to do so with header?
Anyway, Ally"s suggestion is the only one that seems workable to me. But it also seems too much hassle for what I want. Don"t want to use sessions or cookies.
TRIED to quote last line of last reply, but PASTE doesnt" work dam. Pretend QUOT$E HERE, and YES, that"s exactly what I want.
Dam I have to reboot. With all this code in front of me. Hate that. Hate Dell. They used to be good.
So, not just post form vars somewhere and then redirect a user, but redirect a user and when the user hits the landing page, have the variables filled in on the ladning page form. The title of the thread says "Variables can't appear in the url" so the query string is out.
Wouldn't that require modifying the last page where I submit the form? Because the whole reason for this is that the form would be submitted to code that I didn't want to touch.
It's a paid for program that has regular upgrades and I'm sure the $POST vars will never or rarely change, whereas the code itself changes all the time. Don't want to have to redo a hack every time...