Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - No... don't get it
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedNo... don't get it

 Post Reply Post Reply
Author
westwight View Drop Down
Newbie
Newbie


Joined: 09 October 2004
Location: United Kingdom
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote westwight Quote  Post ReplyReply Direct Link To This Post Topic: No... don't get it
    Posted: 13 December 2006 at 9:08pm
Sorry but I've read all the previous entries and I just don't get this :¬(
 
I've got a contact form, contact1.asp, which contains the line
<form name="mailform" action="http://xxxx.co.uk/mailreply1.asp" method="post" onSubmit="return valid(this)">
 
I've now included
<!-- include the Web Wiz CAPTCHA form -->
<!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
at the point I want my captcha box but obviously nothing is being processed.
 
In mailreply1.asp I've then got:
<%
  If blnCAPTCHAcodeCorrect = True Then
   Response.Write(" Thank you for writing to us")
  ElseIf  blnCAPTCHAcodeCorrect = False Then
    Response.Redirect("contact1.asp")
  End If
%>
 
but it loses all the info previously entered into the fields.
 
Is there a better way to do this so the customer doesn't have to r-enter information?


Edited by westwight - 13 December 2006 at 11:25pm
Back to Top
VBScript View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2004
Location: United Kingdom
Status: Offline
Points: 219
Post Options Post Options   Thanks (0) Thanks(0)   Quote VBScript Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2006 at 7:17am
You could do

Response.Redirect("contact1.asp?FirstName=" & Request.Form("txtFirstName") & "&LastName=" & Request.Form("txtLastName")


And for the text boxes modify the value property.


<input type="text" name="txtFirstName" value="<%=Request.QueryString("txtFirstName")%>">


That method is a good way of doing it.
Back to Top
westwight View Drop Down
Newbie
Newbie


Joined: 09 October 2004
Location: United Kingdom
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote westwight Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2006 at 5:49pm

Thanks James, I'll give that a go and letyou kow if I mange to make sense of it.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.