Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
submitting contact form and displaying confirmation page, stepwise?
Old 09-14-2008, 03:50 PM submitting contact form and displaying confirmation page, stepwise?
matt w's Avatar
Super Talker

Posts: 136
Location: kalamazoo
Trades: 0
I'm not seeing the forest through the trees here,
I have a self submitting contact form with reCaptcha. Then, if it validates, it has an "include" to a php page to send the data, and if that page goes well I "include" a confirmation page that uses JavaScript "onLoad" to "window.open" to the confirmation page.
I'm not sure that the variables from the contact page will be successfully carried all the way to the confirmation page, and I can't tell, because the last file in the chain isn't being loaded for some reason when I run the whole chain on my local machine. (It does show up when I call it from it's closest relative, but without its variable data filled in.) I tried using a header() --the very first thing on the page-- but it wasn't allowed because the page previously did something to throw it.
What's my direction?
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
 
Register now for full access!
Old 09-14-2008, 04:38 PM Re: submitting contact form and displaying confirmation page, stepwise?
Defies a Status

Posts: 1,606
Trades: 0
Why not just use php for the confirmation part?

The code can be included right after the send portion and would not execute unless you reached that point in the script. No variable carry forward would be required doing it this way.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 09-14-2008, 09:29 PM Re: submitting contact form and displaying confirmation page, stepwise?
matt w's Avatar
Super Talker

Posts: 136
Location: kalamazoo
Trades: 0
Things work great "including" the comfirm page on the form page, and when I try to do a
PHP Code:
print "<meta http-equiv=\"refresh\" content=\"0;URL=mail_report.php\">"
the variables don't carry over, and when I try doing a
PHP Code:
header("Location: mail_report.php"); 
it throws a error message such as this:

"Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\local_sites\three_column_fixed_tes t\loop_practice.php:7)"

When mail_report.php is called by the "onLoad" function of mail_confirmation.php, it shows up great, but when the chain is started by the "include 'mail_confirmation.php';" in the contact form page, the new window at the end of the chaion never materializes. Could that JavaScript window be made to function with variable carryover, you think?

I really want to project the confirmation page in another page, tab, window or pane, other than the contact form page. Is that not usually done? What are your ideas? I've been spending a lot of effort on this. Thanks for you patience.

matt
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Reply     « Reply to submitting contact form and displaying confirmation page, stepwise?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12500 seconds with 12 queries