SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast shyster's Avatar
    Join Date
    Mar 2005
    Location
    VA
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Failure/Error Page Problem

    whats up sitepoint....i have put together a contact form on my new site, here is the link: http://jjbuckets.com/contact.html

    i have mad a custom SUCCESS page and have no problems when a successful email is sent. I found some codes for a FAILURE page, and it is almost identicle to the SUCCESS page, here are both snippets:

    <INPUT TYPE="hidden" NAME="success" VALUE="http://www.jjbuckets.com/success.html">

    <INPUT TYPE=HIDDEN NAME="failure" VALUE="http://www.cnn.com">

    I just put the cnn address in there for testing. I havent uploaded the FAILURE to my server, because it doesnt seem to work, i still get the default message. In the form, there are 4 required fields, so when someone doenst fill in one, and goes to send the email, I want them to go to a custom FAILURE page like i created for a successful email. I have tried using all caps in the failure code, etc. Anyone have any suggestions? I am using CGIEMAIL script that was on myserver. Again, everything works properly, i just can't get the failure to route to a custom page like my success page. Any help would be greatly appreciated.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Surely there's something wrong with your backend script (CGIEMAIL). After all, it is this script that will decide whether there is success or failure and thus what page to show the user.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •