Skip to main content
Participating Frequently
April 7, 2010
Question

Adding a Submit Form to a Detail Page

  • April 7, 2010
  • 1 reply
  • 1056 views

I am creating an event registration system where the master page is the event list and the detail page has the event description. This is working fine. When I went to add a form below it to gather additional information to input into the database for the person to register, I can't figure out how to get the information in the form to pass into the database with the event date and event name (appearing in the detail results above and not in the form portion) and wondering how would I get all the information from the entire page to get input into the database when the Submit button is clicked? Do I need to use some hidden input fields? Do I need to create some additional new bindings?

I've tried figuring it out and thanks for any help you might be able to share.

-Chris

This topic has been closed for replies.

1 reply

April 7, 2010

Can you provide any additional details or links?

I assume you're using a form on the main page to call the details page... 

If you're using GET, you can simply call the GET variables into a hidden field in your form in order to pass them on:

<INPUT NAME="xxxxx" TYPE="hidden" VALUE="<?php echo $_GET['url_parameter']; ?>">

For post, it's the same thing, but $_POST['url_paramater']

If that's not helpful, try to describe your situation a little more (links!!)

escargoAuthor
Participating Frequently
April 7, 2010

It is unfortunately on a local test server at the moment.

Let me see if I can be more specific and helpful. It is really pretty simple. It is a simple event registration concept:

Overview: Just imagine using the Dreamweaver Master/Detail wizard to create a master and detail page set. Master page has a list of events from the database. The detail page is the detail for each event. On the detail page, I would like to add a form below that allows the user to sign up for that event by entering their contact info. Clicking the submit button only posts the form data and is not associated with the detail of the specific event.

Since the detail page has the event information specifc for that event up top (auto-generated by the Master/Detail wizard in dreamweaver), then within the form below it (which I created below the detail info) and it contains a submit button that only submits the information in the form. I want the submit button to include the detail results above so I know what event they are signing up for. Do I need to bind something to the form? post a variable to the URL?

I hope that is more helpful. Sorry for the confusion.

Thanks!

-Chris

April 7, 2010

I have never used the Master/Detail wizard. I've done similar concepts manually. If I have time later tonight I'll take a look at the Wizard to see if I can help you.  If you want to see how I did the same thing by hand, take a a look at http://www.melsbgc.com/events_main.php. Notice how I just use a GET parameter from the link to pull up the event's detail page...