what´s problem?

From: Date: Mon, 20 Nov 2000 18:49:14 +0000
Subject: what´s problem?
Groups: php.dev 
Request: Send a blank email to php-dev+get-38660@lists.php.net to get a copy of this message
(index.htm) <form action="form2.php3" method="post"> <p>Monitor: <select name="whichEngine"> <option selected>Nenhum <option>LG 17 Flatron (R$999) <option>LG 15 (R$550) <option>Sansung 17 (R$850) </select> <p>Hd: <select name="hd"> <option selected>Nenhum <option>Sansung 10gb (R$200) <option>Sansung 20gb (R$250) <option>Sansung 80gb (R$450) </select> <p><input type="submit" value="Submit"> </form> (form2.php3) <html> <?php $searchEngine = document.searchForm.whichEngine.selectedIndex + 1; $searchHD = document.searchForm.hd.selectedIndex + 1; if($searchEngine == 1){ $d1 = 0; } if($searchEngine == 2){ $d1 = 999; } if($searchEngine == 3){ $d1 = 550; } if($searchEngine == 4){ $d1 = 850; } if($searchHD == 1){ $d2 = 0; } if($searchHD == 2){ $d2 = 200; } if($searchHD == 3){ $d2 = 250; } if($searchHD == 4){ $d2 = 450; } $soma = $d1+$d2; ?> <p>O total foi: <?php echo($soma);?> .. féra né? </p> </html> the $soma = 0 ... =( ...

« previous php.dev (#38660) next »