SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast zefirebird's Avatar
    Join Date
    Aug 2001
    Location
    nz
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form submission returns wrong page to screen

    Hello, I have a form that after clicking the submit button it brings up the results page instead of confirm.htm page.
    http://www.sportingtours.co.nz/contact.htm
    It sends the results as an email OK,but any help for getting the right page to show would be appreaciated.
    Pat

    <FORM METHOD=POST ACTION="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>
    <!--webbot bot="SaveResults" u-file="confirm.htm" s-format="HTML/BR" s-label-fields="TRUE" b-reverse-chronology="FALSE" s-builtin-fields u-confirmation-url="confirm.htm" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" --><input TYPE="hidden" name="recipient" value="contact@enzaway.co.nz"><input TYPE="hidden" name="subject" value="Contact Form"><input TYPE="hidden" name="redirect" value="http://www.sportingtours.co.nz/formrslt.htm"><P>
    <font size="2">
    Please provide the following contact information/font></P>
    <TABLE align="center">
    <TR>
    <TD ALIGN="right">
    <EM><font size="2">Name</font></EM></TD>
    <TD>
    <font size="2">
    <INPUT TYPE=TEXT NAME="Contact_FullName" SIZE=35>
    </font>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <em><font size="2">Requirements</font></em></TD>
    <TD>
    <textarea rows="2" name="S1" cols="20"></textarea></TD>
    </TR>
    <TR>
    <TD ALIGN="right"></TD>
    <TD>
    <font size="2">
    <a href="mailto:contact@enzaway.co.nz?subject=General Enquiry">
    <INPUT TYPE=SUBMIT VALUE="Submit Form"></a>
    </font>
    </TD>
    </TR>
    </TABLE>
    </FORM>
    "One's real life is so often the life that one does not lead." Oscar Wilde

  2. #2
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Web Bots are very unreliable. You're using FrontPage, correct? Get away from it and use a server-side language. That's really all the advice I can give you.

    If you want to keep with your Web Bot, take a look at this line of code:
    Code:
    <input TYPE="hidden" name="redirect" value="http://www.sportingtours.co.nz/formrslt.htm">
    Without knowing the underlying function of the Web Bot, I would guess that that is your problem. Try altering that to point to confirm.htm.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  3. #3
    SitePoint Addict psychedelic's Avatar
    Join Date
    Feb 2002
    Location
    Boston
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please use the vb code to post code, it'd make it easier to read....
    The Internet is prettier on a Mac.

  4. #4
    SitePoint Enthusiast zefirebird's Avatar
    Join Date
    Aug 2001
    Location
    nz
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks Colin, but have tried changing rslt to confirm - no dice

    Hi Colin - thanks for the advice, and yes will steer clear of web bots from now on.
    So server side- in the interests of quick fix because deadline is upon me, is server side a line of code I can insert to change my present form? What can I use to return the contents of this form to the owner and present a thankyou page to the client online?
    "One's real life is so often the life that one does not lead." Oscar Wilde


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
  •