Wrox Programmer Forums
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2005, 11:20 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hameed123
Default Booking form

I currently have data fed from a db table - I am trying to select a number of tickets for each row, and then for the user to submit, complete personal details and then submit to an email address.

PLEASE PLEASE PLEASE Reply

Abdul
 
Old May 12th, 2005, 11:22 AM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hameed123
Default

Sorry, here is the code, which may make more sense than my original post...

$sql="SELECT * FROM seminars_dates";
if ($result=mysql_query($sql)) {
    echo "<table class=\"data\" border = 1>\n";
    echo "<tr><th>Date</th><th>Town/City</th><th>Speaker</th><th>Seminar Title</th><th>Tickets required</th></tr>\n";
    while($row = mysql_fetch_array($result)) {
        echo "<tr><td>" . $row['date'] . "</td><td>" . $row["heading"] . "</td><td>" . $row["speaker"] . "</td><td>" . $row["seminar"] . "</td><td> <select name='qty' value=".$row['id']."><option>Please Select</option><option value = '1'>1</option><option value = '2'>2</option><option value = '3+'>3 or more</option></select></td></tr>\n";

            }
                echo "</table>";
            }
?>
<p>
  <input type="submit" name="btnSubmit" id="btnSubmit" value="Confirm Booking">
</p>
</form>


Abdul





Similar Threads
Thread Thread Starter Forum Replies Last Post
Java code for Booking form riaz Java GUI 10 May 17th, 2007 09:33 AM
Booking program. Tankey Access 1 May 2nd, 2006 03:56 PM
Forward Booking rahilahmed Excel VBA 0 May 24th, 2004 09:25 AM
JavaScriopt booking form yatesie Java Databases 2 November 26th, 2003 11:57 AM
booking form LITOTES PHP How-To 2 June 4th, 2003 03:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.