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

post data

Participant ,
Apr 06, 2009 Apr 06, 2009

I have a drop down menu and I want to post the data from the drop down into the next page....can I do that?

Thanks

TOPICS
Advanced techniques
2.1K
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
Explorer ,
Apr 06, 2009 Apr 06, 2009

All form data will be sent to any specified in the action="" 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
Community Expert ,
Apr 06, 2009 Apr 06, 2009

formPage.cfm

<form action="actionPage.cfm" method="post">

<SELECT NAME="flavor">

<OPTION value = "" SELECTED>Select flavor</OPTION >

<OPTION VALUE="vanilla" >Vanilla</OPTION >

<OPTION VALUE="strawberry">Strawberry</OPTION >

<OPTION VALUE="rum_raisin">Rum and Raisin</OPTION >

<OPTION VALUE="peach_orange">Peach and Orange</OPTION >

</SELECT>

<input ty

pe="Submit" value="send" name="sbmt">

actionPage.cfm

<cfdump

var="#form#">

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, 2009 Apr 06, 2009

I'm sorry my question is not complete....I mean I want to post the data from the drop down into the next page without using submit button

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
Valorous Hero ,
Apr 06, 2009 Apr 06, 2009
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
Valorous Hero ,
Apr 06, 2009 Apr 06, 2009

What do want use, if not the submit button.

P.S.,

I'm not liking a lot about this new Forum yet.

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, 2009 Apr 06, 2009

that I don't know...that's why I'm asking if it's possible and how. But I'm thinking is it possible to store the data on a session variable thru onclick? So that when a user pick a choice on the drop down then it will store in the session.

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
Explorer ,
Apr 06, 2009 Apr 06, 2009

You can use for it AJAX - jQuery or ExtJS js-libraries.

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, 2009 Apr 06, 2009

can you give me a walkthrough on that, good reference?

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
Explorer ,
Apr 06, 2009 Apr 06, 2009
LATEST

I think you need read something like this: http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm

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
Resources