ASP Form redirect - online now?

liunx

Guest
Is there anybody online right now who can look at my form and tell me what's wrong? It's something very simple and obvious, I'm sure, I'm just not seeing it. When I click Submit, it tries to redirect to "registration.asp" in the main directory (which doesn't exist) instead of the page specified in the configuration section ("http://www.firebirdssoccer.org/Icebreaker/regcomplete.html"). I need to have this fixed ASAP, I didn't notice the problem and folks are trying to use it now!

Thank you!!


<%
'******************************
'CONFIGURATION DIRECTIONS
'You can use this code without modifications for any form you would like to email results to you.
'You can create any form you want, have it submit back to itself, and just set the variables is the config section
'******************************

'******************************
' Begin Configuration Section
'******************************
recipient = "[email protected]"'recipient's email address
redirect = "http://www.firebirdssoccer.org/Icebreaker/regcomplete.html"'where the form will redirect to after submission (if you leave it blank it will stay on this page)
subject = "Icebreaker Online Registration"'subject of the email msg
default_from_email = "[email protected]"'email senders address if user doesn't enter one, or senders address for all submissions if you don't have a form field named email
'******************************
' End Configuration Section
'******************************

'******************************
' Begin DO NOT MODIFY
'******************************
if len(request.form()) > 0 then

Dim field_list
field_list = split(request.form("field_list"), ",")

body = "Icebreaker Online Registration" & vbCrLf
for x = 0 to ubound(field_list)
body = body & trim(field_list(x)) & ": " & request.form(trim(field_list(x))) & vbCrLf
next
body = body & ""

Dim objSendMail
Set objSendMail = Server.CreateObject("CDONTS.Newmail")
objSendMail.To = recipient
if len(request("email")) > 0 then
objSendMail.From = request("email")
else
objSendMail.From = default_from_email
end if
objSendMail.Subject = subject
objSendMail.Body = body
objSendMail.Send
Set objCDOMail = Nothing

if len(redirect) > 0 then
response.redirect(redirect)
end if
end if
'******************************
' End DO NOT MODIFY
'******************************
%>it shouldn't do that. there is nothing with the code.It seems the problem lies with GoDaddy - it was brought up in this other forum, but wasn't really resolved (<!-- m --><a class="postlink" href="http://forums.aspfree.com/asp-development-5/asp-email-form-on-godaddy-114110.html">http://forums.aspfree.com/asp-developme ... 14110.html</a><!-- m -->)
Anybody have any experience with custom ASP to e-mail forms on GoDaddy and know what the problem is and if there's a way to get around it?

Thanks, Afterburn, for letting me know I'm not totally crazy.Fixed it - the problem was with my form. Just needed a fresh perspective this morning.
 
Back
Top