|
Posted by windandwaves on 01/20/06 23:55
Al wrote:
>> Why not put both methods in mynewpage.php and choose which one to use
>> depending on which button is pressed?
>
> Somewhere else might be a different site.
>
> Having said that, if "somewhere else" can take GETs rather than POSTs,
> you can direct all form traffic to one php file and see which submit
> button name/value pair is activated and then either run the script if
> it's "here" or do a header("Location: ") if it's the "somewhere else"
> one... But that IS a little odd, and the javascript method is a little
> smoother.
Yes, it is funny. Because it seems to make sense that depending on the
choices from the user the data may have to go to site A or site B. Doing
the header function means that you loose the posted variables as posts so
that you have to post them again. Can you do something like this:
header(post-type, $_POST), basically directly reposting all posted variables
to a new location?
HTMS (hope that makes sense)
- Nicolaas
Navigation:
[Reply to this message]
|