You are here: Re: Two forms « PHP Programming Language « IT news, forums, messages
Re: Two forms

Posted by Shelly on 10/18/06 19:55

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:8a0c6$45363e5d$8259c69c$12862@news2.tudelft.nl...
> Shelly wrote:
>> "Rik" <luiheidsgoeroe@hotmail.com> wrote in message
>> news:88b95$45359e36$8259c69c$24588@news2.tudelft.nl...
>>> Shelly wrote:
>>>> I was a little too quick in replying. I have four buttons that
>>>> should not open a new window and two that should. In my actual
>>>> application I sent it to redir.php in the Javascript. Once there in
>>>> redir.php, I test on which of the two buttons in the original page
>>>> activated it and then send it to the proper page.
>>> I'm very curious what your <form> tag actually sais, because I've
>>> switched them around, defaulting to _self instead of _blank.... That
>>> would be the easy solution :-)
>>
>> It defaults to "_self"
>>
>> <form action="" method="POST" name="pets" target="_self">
>
> Any change on getting the whole script + form? My example works perfectly
> here, and I cannot guess what went wrong in your form.

Not a problem getting the script, but I fixed it a different way. I had
posted this to this group and to alt.comp.lang.php. Gleep answered there
and that led me in the right track. What I did was use javascript with
onchange in formA's drop-=down list to set a hidden variable in formB.
Then when I hit a submit button in formB, I read the value of that hidden
variable. it works like a charm -- and I can use that to do other things as
well in other code.

Thank you four your help and interest.

Shelly

P.S. This is a great list. I am greatly indebted to this list, and will
contribute more as I can find even a little time.

 

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

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