Jump to content

tcpa41

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tcpa41's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello,sry if it is a dumb question,but im trying to write an if construct which usses isset and my problem is that i want it to execute only if isset is false. My idea looks like this,but when it's executed i get error about unexpected false.So how do i make such construct work only incase $val is false? if(isset($val)))==false { }
  2. ouch , ty for pointing out my prob,it works now. I just needed to replace quotes
  3. Hello,i was playing around with php and noticed a strange problem i cannot solve,i think its because data from form.html Isn't written to $post array. Im getting Undefined index problem. Ty for all help in advance :-\ form.html <form action="processorder.php" method="POST"> <table border=”0”> <tr bgcolor=”#cccccc”> <td width=”150”>Item</td> <td width=”15”>Quantity</td> </tr> <tr> <td>Tires</td> <td align=”center”><input type=”text” name=”tireqty” size=”3” maxlength="3" /></td> </tr> <tr> <td>Oil</td> <td align=”center”><input type=”text” name=”oilqty” size=”3” maxlength=”3” /></td> </tr> <tr> <td>Spark Plugs</td> <td align=”center”><input type=”text” name=”sparkqty” size=”3” maxlength=”3” /></td> </tr> <tr> <td colspan="2" align="center"><button type="submit" style="height: 25px; width: 100px"><strong> SendIt</strong></button> </td> </tr> </table> </form> processorder.php <?php // create short variable names $tires = $_POST["tireqty"]; $oil = $_POST["oilqty"]; $spark = $_POST["sparkqty"]; echo "<p>Your order is as follows: </p>"; echo $tires." tires<br />"; echo $oil." bottles of oil<br />"; echo $spark." spark plugs<br />"; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.