View Full Version : Two UE on one page
jon_upton
11-16-2009, 07:59 AM
I have two occurances of UE on one page a larger form called Main (UE1) and a small form called Showing (UE2).
Main submits no problem and the email is sent and the page redirects but Showing will not submit. I have looked at this till I'm blue in the face and can't for the life of me see what is wrong. Would someone be so kind as to see if they can see the bleeding obvious that is evading me.
www.gladstone-court.co.uk/contact.asp
Showing submits no problem when it is the only UE on thepage.
www.gladstone-court.co.uk/apartments.asp
Thanks
Jon
Jason Byrnes
11-16-2009, 10:52 AM
When you have 2 instances of UE on the page, make sure that the first one does not have a redirect set. If it does, the redirect will occur before the second one can send the email.
jon_upton
11-16-2009, 02:13 PM
Before your suggestion
<%
if ((cStr(Request.Form("Submit")) <> "")) then
'WA Universal Email object="CDONTS NewMail"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("jon_upton@thinkanddo.co.uk")
'Send Mail All Entries
if ("default.asp"<>"") then
Response.Redirect("default.asp")
end if
end if
%>
<%
if ((cStr(Request.Form("Button")) <> "")) then
'WA Universal Email object="CDONTS NewMail"
'Send Loop Once Per Entry
WA_Universal_Email_2_SendMail("jon.upton@blueyonder.co.uk")
'Send Mail All Entries
if ("default.asp"<>"") then
Response.Redirect("default.asp")
end if
end if
%>
After
<%
if ((cStr(Request.Form("Submit")) <> "")) then
'WA Universal Email object="CDONTS NewMail"
'Send Loop Once Per Entry
WA_Universal_Email_1_SendMail("jon_upton@thinkanddo.co.uk")
'Send Mail All Entries
end if
%>
<%
if ((cStr(Request.Form("Button")) <> "")) then
'WA Universal Email object="CDONTS NewMail"
'Send Loop Once Per Entry
WA_Universal_Email_2_SendMail("jon.upton@blueyonder.co.uk")
'Send Mail All Entries
if ("default.asp"<>"") then
Response.Redirect("default.asp")
end if
end if
%>
Any other thoughts
Page attached in ZIP file
regards
Jon
jon_upton
11-18-2009, 08:54 AM
Please can I have some help with this issue
Thanks
Jon
Jason Byrnes
11-18-2009, 12:51 PM
you are using email validation on the phone number field:
<span id="sprytextfield3">
<input type="text" id="CBTelephone" name="CBTelephone" value="" />
<span class="textfieldRequiredMsg">Enter you Telephone</span><span class="textfieldMinCharsMsg">Enter full Telephone</span></span></li>
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "email", {minChars:10});
validation the form will only submit if you enter an email address in the phone number field.
jon_upton
11-18-2009, 02:34 PM
I owe you a beer
Trouble is I haven't been to California since 1986 maybe some time in the near future you'll be able to collect if I can sell a few more web developments unless you are coming to the UK sometime soon.
Thanks again
Jon
Jason Byrnes
11-18-2009, 02:39 PM
No worries.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.