Advertisement
Guest User

my form page so far

a guest
May 6th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.00 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if (isset($_SESSION['finalform'])) {
  4.     foreach($_SESSION['finalform'] as $key=>$val)
  5.         $$key=$val;
  6.     }
  7.     else {
  8.     $full_name=$street_address=$zip_code=$email_address=$phone=$error='';
  9. }
  10. unset($_SESSION['finalform']);
  11.  
  12.  
  13. $ticket_quality=array(
  14.     'Best' => 'Give me the best seats you have got - $110.00',
  15.     'Not_lame' => 'Give me some seats that wont make me feel lame - $75.00',
  16.     'Desperate' => 'Ill take any solid slab I can park my butt on. Or, Ill stand - $25.00',
  17. );
  18. $nice_amenities=array(
  19.     'Drink' => 'Medium Fountain Drink - $1.50',  
  20.     'Side'=>'One Delicious Side of Fries or Onion Rings - $1.50',
  21.     'Pin'=> 'A Tiny but Cool Pin with which to Show My Fan Loyalty - $1.50',
  22.     'Sticker'=> 'A Sticker Suitable for a 3-Ring Binder or the Top of a Laptop - $1.50',
  23.     'Earplugs' => 'Designer Earplugs - $1.50'
  24. );
  25. $best_amenities=array(
  26.     'Combo' => 'One of those Combo Things Where you Get a Sandwich, Fries, and a Drink - $7.00',
  27.     'Cd' => 'A CD of the Concert, Available within Seconds of the Concerts Ending - $7.00',
  28.     'Frisbee' => 'A Frisbee with a Hallucinogenic Design Only Visible from a Helicopter - $7.00',
  29.     'Shirt' => 'A T-Shirt that Looks Suspiciously Worn - $7.00',
  30.     'Picture' => 'A Shot of Me Screaming in Slow Motion on the Jumbotron - $7.00'
  31. );
  32. ?>
  33. <?php
  34.      foreach($ticket_quality as $key=>$val) {
  35.                             echo '<option value="Best">Give me the best seats you have got</option>
  36.                             <option value="Best"Give me the best seats you have got </option>
  37.                             <option value="nice_amenities">CD Plus Download</option>
  38.                             <option value="package3">LP Plus Download</option>
  39.                             <option value="package4">LP Plus T-Shirt Plus Download</option>
  40.                         </select>
  41.                    
  42. ?>
  43. <html>
  44.     <head>
  45.         <title>Final Form</title>
  46.     </head>
  47.     <body>
  48.         <div id="wrapper">
  49.             <div id="container">
  50.                 <div id="content">
  51.                     <div id="masthead">
  52.                         <h2>I Want To Tell You Who I Am and Where I Live</h2>
  53.                     </div>     
  54.                     <form action="final_form_submit.php" method="POST">
  55.                         <table>
  56.                             <tr>
  57.                                 <td><label for="full_name">Full Name</label></td>
  58.                                 <td><input type="text" name="full_name" size=30></td>
  59.                             </tr>
  60.                             <tr>
  61.                             <td><label for="street_address">Street Address</label></td>
  62.                                 <td><input type="text" name="street_address" size=30></td>
  63.                             </tr>
  64.                             <tr>
  65.                             <td><label for="zip_code">Zip Code</label></td>
  66.                                 <td><input type="text" name="zip_code" size=30></td>
  67.                             </tr>
  68.                             <tr>
  69.                                 <td><label for="email_address">Email Address</label></td>
  70.                                 <td><input type="text" name="email_address" id="email_address" size="30"></td>
  71.                             </tr>
  72.                             <tr>
  73.                             <td><label for="phone">Phone</label></td>
  74.                                 <td><input type="text" name="phone" size=30></td>
  75.                             </tr>
  76.                             <tr>
  77.                                 <td><input type="submit" value="continue"></td>
  78.                                 <td></td>
  79.                             </tr>
  80.                         </table>
  81.                     </form>
  82.                 </div>
  83.             </div>
  84.         </div>
  85.     </body>
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement