Another solution would be to put up a "please wait whilst we process your
request" page where your "check your details are correct" page is now: make a
form with all the data in hidden fields and then use a _javascript_ to submit this
page to the booking page.
Personally, i'd probably opt for the approach you've used below - can't
hurt to have 'em check and confirm their data before
posting...
/t
----------------------------------------------------------
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hardy
Sent: Friday, September 09, 2005 1:50 PM
To: [email protected]
Subject: Re: [CFCDev] OT: Validating and then submitted formlol ... yip, cfhttp would be great except it returns the results of a http call and puts it into to a variable. Although I could display this to the user it would breach the security provided the booking page.So what's my solution? Well, thus far I've got this:a) display edit_customer, validate details (self-post), if valid store details in session and cflocate to review_customerb) retrieve details from session and display them.c) if user confirms -> post to booking page, user cancels -> go post back to edit customerBasically, I'm getting the user to submit the form but making it look like a "check your details are correct" page.Cheers, Pete (aka lad4bear)
On 09/09/05, Nando <[EMAIL PROTECTED]> wrote:Peter,
take a look at the cfhttp tag docs. i think you should be able to repost the
form data after validation in this way.
cfhttp - Performs GET and POST to upload file or post form, cookie, query,
or CGI variable directly to server
ciao,
Nando
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Peter Hardy
Sent: Friday, September 09, 2005 12:19 PM
To: [email protected]
Subject: [CFCDev] OT: Validating and then submitted form
Hi guys,
This one is OT but am a bit stumped.
I have two pages, Customer page and Booking page. The Customer page (regular
page on our site) submits a series of form fields to the Booking page
(secure page on an external site). It all works fine.
The problem is with validation. You see, if I self-post the Customer page in
order to validate it and if validation is successful, I only have the
<cflocation> tag to move to the Booking page. This doesn't help as the
Booking page only accepts form fields. Have tried getPageContact.forward()
instead but that only transfers to pages on the local server.
So I'm left with validated Customer data and no way to post it to the
external Booking page. I'm stumped ? Can anyone enlighten me?
Peter
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
