Posted by Geoff Berrow on 04/24/07 08:25
Message-ID: <595p23Ftrns8U1@mid.dfncis.de> from Christoph Burschka
contained the following:
>> <?php
>>
>> if ($holdchk == 1 ){
>> echo "<form method=\"POST\" action=\"otherform.php\">";
>> }
>> else{
>> echo "<form method=\"POST\" action=\"someform.php\">";
>> }
>>
>> ?>
>
>Yes, that's cleaner, but technically there's no reason why the two if's
>shouldn't work the same way (at least for values 1 or 0 - the if-else of
>course will do the "0" action for all values not equal to one).
Well it was early morning when I posted that and I vaguely thought it
may be to do with typecasting. I always find it best to avoid zero as a
comparison value.
>
>However, the problem - having to click twice to get it to submit - is a
>browser-side problem. It could be related to messy HTML code or broken
>Javascript. But there's no way to tell without seeing the whole form.
That's true.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
Navigation:
[Reply to this message]
|