You are here: Re: posting variables from forms « PHP Programming Language « IT news, forums, messages
Re: posting variables from forms

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация