Bluehost.com Web Hosting $6.95

"Thank you" after form entry

This is a discussion on "Thank you" after form entry within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I currently have an almost entirely static html site and am just starting to use form entry. On the (only) ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-26-2006
Mark Stanton
 
Posts: n/a
Default "Thank you" after form entry

I currently have an almost entirely static html site and am just
starting to use form entry.

On the (only) page like this my button runs a php script that
collects the entered information and mails it to us, it works.

However, that leaves the user with a blank screen, now with an error
message.

I'd like the user to be either presented with a "thank you" screen,
or returned to somewhere sensible on the site, both of which I
suspect are really the same problem.

For other projects I've been using an ecommerce framework (a little)
so I know about feeding the server a whole load of html to get it to
generate a page, but for just one, or even only a few, pages this
seems like a huge price to pay.

Is there an easy(er) way to get done what I want?

The (still not-really live) page can be found at
www.vowleyfarm.co.uk/New%20Site/FoVF.htm

?
Many thanks
Mark Stanton
One small step for mankind...

Reply With Quote
  #2 (permalink)  
Old 03-27-2006
Spanker
 
Posts: n/a
Default Re: "Thank you" after form entry

> Parse error: parse error, unexpected T_STRING in /files/home3/vowleyfarm/php/farm/modules/actions/submitFoVF.php on line 104

looks like you are missing a ; somewhere


the way to print out a simple thank you is the following


print "<html><h1>Thank You</h1></html";

Reply With Quote
  #3 (permalink)  
Old 03-27-2006
Mark Stanton
 
Posts: n/a
Default Re: "Thank you" after form entry

Was missing a single quote 8-(

Many thanks
(errr, echo("<html><h1>Thanks Spanker!</h1></html>") )

that should sort it out!

Must've got my wrong head on last night 8-(

8-)
Mark Stanton
One small step for mankind...


Reply With Quote
  #4 (permalink)  
Old 03-28-2006
Alexander Meins
 
Posts: n/a
Default Re: "Thank you" after form entry

Mark Stanton schrieb:

> I'd like the user to be either presented with a "thank you" screen,
> or returned to somewhere sensible on the site, both of which I
> suspect are really the same problem.


This works for me:
Redirecting to a thank you page after sending the e-mail

header ("Location: ./thankyou.php" );
exit;

A.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0