Forum Moderators: coopster

Message Too Old, No Replies

submit form in a meta refresh...

         

dmmh

9:35 am on Mar 7, 2005 (gmt 0)

10+ Year Member



I have a select menu somewhere with different actions, it takes people to a landing page and depending on the selected acion, it redirects people to the proper page. The problem is I need to transfer items selected with checkboxes via this page to the final page, automagically so to speak :)
I dont want to use javascript, so body onLoad is out of the question. Can it be done?

not a PHP question perse, but I do it all in PHP so :)

coopster

12:52 pm on Mar 7, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sure, you could either use a cookie or a session to store the values and upon reaching that page, populate your selection box. Or you could build your own "POST" and deliver that with the header() function. There is an example of how to build the POST in the PHP Forum Library. I believe there is also a tutorial or two to be found on www.zend.com.

dmmh

1:08 pm on Mar 7, 2005 (gmt 0)

10+ Year Member



I might be overlooking it, but cant find anuthing in the library, could you perhaps point me to the URL?

edit: dont wanne use cookies :)

coopster

7:29 pm on Mar 7, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sure.

Single form posted to multiple locations [webmasterworld.com]

Here's that zend article I was talking about too...

Mimic form submissions in PHP [zend.com]

dmmh

8:57 am on Mar 8, 2005 (gmt 0)

10+ Year Member



tx, gonna check this out :)