Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Adding a Submit Form to a Detail Page

Participant ,
Apr 06, 2010 Apr 06, 2010

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

TOPICS
Server side applications
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 06, 2010 Apr 06, 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!!)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 07, 2010 Apr 07, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 07, 2010 Apr 07, 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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 09, 2010 Apr 09, 2010

Michael,

I appreciate the thoughts. It would appear that what you are doing in the example is what the Master/Detail wizard does in an automated form.

If you can imagine having a signup form on the detail page, when you submit that form, I would like to include the detail results information at top, but get it into the form submit. I could do this with a hidden field, but it is not dynamic. I want to have a hidden field that will pull in dynamic information relative to the detail page content (if that makes sense).

It would seem like this would be a fairly common thing. Anybody know how the answer? Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 09, 2010 Apr 09, 2010

I figured it out. For those who might be wondering about the answer:

It does involve the creation of a hidden field. The hidden field must be named the same as the database field entry name. Then in Dreamweaver, in the Insert Record (under bindings), make the newly created hidden field take on the Detail page result Recordset element. It now inputs the result into the database correctly.

Maybe that will help somebody else too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 09, 2010 Apr 09, 2010
LATEST

I'm glad you got it... what you did is pretty much what I was saying to do... I apologize if my posts weren't clear.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines