Help with passing values via url hyperlinks

2000-07-25 Thread AustralianAccommodation.com Pty. Ltd.

I have 7 buttons on a page each relates to a separate application form so
when I click on a button it passes to the appropriate application form

each button will have the hyper link a href="formpage.cfm?button=value"
with each form have an independent value to identify the different forms

so that I do not have to have  7 separate pages for one for each application
form I can one page that contain all 7 forms on it and then use cfif
statements in combination with #url.button# = a value to have the
appropriate form on the page displayed dependant on which button is clicked

my question is what is the correct code to add after the ? on the url

and the  appropriate corresponding code to have in the cfif statement in
order to have the formpage execute the correct form based on the relevant
value passed from the each of the 7 buttons on the previous page

sorry if I am talking long winded I feel like I am maxwell smart mind you I
have been awake for 19 hrs straight sitting here so I am a bit withered

I look forward to your replies and thank you in advance

Kind Regards

Claude Raiola (Director)
AustralianAccommodation.com Pty. Ltd.
Website: www.AustralianAccommodation.com
Email: [EMAIL PROTECTED]

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with passing values via url hyperlinks

2000-07-25 Thread Heather Haindel

Here's the basic idea...
URL: a href="formpage.cfm?button=value"

action page:
if url.button=optiona
 do this stuff
if url.button=optionb
 do different stuff
else
 do some default thing

If the forms are basically the same, you can just set
the form's action attribute and use the same form.

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with passing values via url hyperlinks

2000-07-25 Thread Deanna L. Schneider

It sounds like what you really want to do is name your submit buttons like
so:
input type="submit" value="Submit this form" name="form1"

Each submit button would have a different name. Then on your action page
(formpage.cfm) you would do something like so:

cfif isdefined("form.form1")

do your code for form 1

cfelseif isdefined("form.form2")

etc...
/cfif

Hope that helps.




Deanna Schneider
Interactive Media Developer
UWEX Cooperative Extension Electronic Publishing Group
103 Extension Bldg
432 N. Lake Street
Madison, WI 53706
(608) 265-7923



--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.