Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
To Andrew or Neil or php programmer |
Page: 1 | Reply |
Dec 12th 2001 | #23122 Report |
Member since: Mar 20th 2001 Posts: 3367 |
this should be simple.. I have this php form for my client that processes orders based on Andrew's mail tutorial what i wanna know is how do i get the from to print out multiple selections of a list like this its when a customer selects 2 fields, it will print out both the values using echo function..after the from has processed, sort of the thank you page with the values sent, hope this is clear enough thanks in advance and i need this urgently |
Reply with Quote Reply |
Dec 12th 2001 | #23151 Report |
Member since: Mar 20th 2001 Posts: 3367 |
ok.. forget the first question... got it well now, i need a script that check a particular value from a form, whether its empty or not... if its not, it will be added to a list to be output out on the page like text box 1 has value of 3, text box 2 has 4 and text box3 and nothing so the page will show 3, 4 can someone help me pls??.. thanks |
Reply with Quote Reply |
Dec 13th 2001 | #23201 Report |
Member since: Nov 8th 2001 Posts: 43 |
...but I'll give it a shot. When you send information to a server using the GET or POST method PHP will automatically consider the name of that form's field name-value pair to be a variable. For example: <form method="get" action="test.php"> <input type="text" name="bubba" value="gump" > <input type="submit"> </form> When the request is sent to test.php you can check for a value of "bubba" using ISSET(), like this: if (ISSET($bubba)){ //do something } else { //do something else } Now that said, you can take any variable (who's name you define in the form) and spit it straight out in test.php: echo $bubba; That should be it...let me know if that answered your question. |
Reply with Quote Reply |
Dec 13th 2001 | #23208 Report |
Member since: Mar 20th 2001 Posts: 3367 |
cool.. i think that should work.. thanks |
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |