Lunarpages Web Hosting Forum

Author Topic: CGIEMAIL - page displayed after submit  (Read 3523 times)

Offline Acadia

  • Newbie
  • *
  • Posts: 3
CGIEMAIL - page displayed after submit
« on: October 10, 2003, 04:32:18 PM »
Im new to using CGI scripts.  I just created a test form to send email and everything tests out A-Ok.  Question? Once I hit submit to send the form I get a page that reads:

The following email message was sent.

--------------------------------------------------------------------------------

To:
Subject:  Form email from webpage

Name:         
Email Address:   
Phone Number:   
Message:      

cgiemail 1.6


How can I replace this with my own page so there are navigation options away from there without having to backup though several pages?

Offline Ed

  • Berserker Poster
  • *****
  • Posts: 5156
    • Joke A Whenever
CGIEMAIL - page displayed after submit
« Reply #1 on: October 10, 2003, 09:05:54 PM »
Since I'm not 100% sure on what version of cgiemail you are using, I can't be 100% sure. But, from what I see the following is a tag you need to add in your form:

<input type=hidden name="redirect" value="http://your.address/to/file.html">

Just replace the http:// part with the webaddress you want it to redirect to.

- Ed

Offline Acadia

  • Newbie
  • *
  • Posts: 3
CGIEMAIL - page displayed after submit
« Reply #2 on: October 11, 2003, 03:15:55 AM »
Ah.  That makes sense.  Thanks!


Offline Acadia

  • Newbie
  • *
  • Posts: 3
CGIEMAIL - page displayed after submit
« Reply #4 on: October 11, 2003, 03:06:19 PM »
Quote from: Kata
Glad to hear you got it fixed! :-)

- Ed


Right after you posted that I realized the answer was looking right at me from both a text I have and from looking at some other code.  Next time I will work a little harder to find the answer!

Thanks for the help  :D

Offline ScottH

  • Spacescooter Operator
  • *****
  • Posts: 40
didn't work
« Reply #5 on: February 23, 2004, 06:09:26 PM »
I am having the same issue, wanting to redirect to another web page rather than the default message.  I tried the above but it didn't work.  Version is CGI 1.6.

Any ideas?

Offline ravinrod

  • Newbie
  • *
  • Posts: 1
try this
« Reply #6 on: February 24, 2004, 01:56:23 AM »
This worked for me:

 <INPUT TYPE="hidden" NAME="success" VALUE="http://www.yoursite.com/Thanks.htm">

I hope this works for you.

 :thumb:

Offline ScottH

  • Spacescooter Operator
  • *****
  • Posts: 40
CGIEMAIL - page displayed after submit
« Reply #7 on: February 24, 2004, 04:27:58 AM »
interesting.....when I changed the "name" attribute from "redirect" to "success", it works.  I thought the "name" attribute was just a meaningless label........?

Thanks!

Offline Ed

  • Berserker Poster
  • *****
  • Posts: 5156
    • Joke A Whenever
CGIEMAIL - page displayed after submit
« Reply #8 on: February 24, 2004, 06:43:04 AM »
Name is the variable name that gets passed to the script. Its even more important than the value, no name = no chance to pass a value.

Glad you got it worked out!

- Ed