
![]() |
@sroc | |
I need to redirect my web page wit post variabls.. I used the header(url); function 2 redirect. but it dose nt help me 2 send post variabls also.. Is there a way 2 redrect wit post varibls? |
||
7
Replies
2360
Views
0 Bookmarks
|
![]() |
@kwah | 1 November 06 |
hey man, it isnt possible to send $_POST variables via php header(Location: ) .. .. try google for '' php redirect with post variables '' or search php.net for '' redirect with post '' for information :) .... .... the only solution i found was to use sessions and store the information in a database
|
||
![]() |
@kwah | 1 November 06 |
.. or to redirect using an error code 3xx with post info ..
|
||
![]() |
@ghost | 5 November 06 |
I don't think it's possible. But may put a 'redirecting...' page to POST variables via javascript behind the screen (a form with hidden fields). Or you can use the sessions as kwah said. * Another solution: If redirected page is inside of the current domain then you may use cookies to pass short amount of data.
|
||
![]() |
@ghost | 5 November 06 |
You can find and example page at 'file upload' page on this site. A page appears after uploading a file into your group that says successfully uploaded. That page includes a hidden form with hidden variables to send user back to 'wapgroups' application. 'wapgroups' is an isapi application, but it uses asp to upload a file. To pass variables between that two different platforms i had to use that 'successfully uploaded' page :)
|
||
![]() |
@kwah | 27 December 06 |
hey ghost, as far as im aware, those 'post variables' are sent within the wml/html/xhtml in contrast with the php header() function as indicated earlier
|
||
![]() |
@casa69 | 8 January 07 |
In ur header(), base64 encode a serialised string of $_POST. Then on the other page, u can base64 decode and unserialise them. Thats if u redirect according whatever is set in ur post result.
|
||
![]() |
@blaz_boy | 17 May 07 |
U can make redirect page with hiden form with a post method & a small js to submit it automatic when page loaded
|
||


