webdev, posts by tag: forms - LiveJournal (original) (raw)
I have been working on a contact form for a client, but I keep running into issues with getting the form to actually e-mail. I know that there is something wrong with the ASP programming, but I am not a programmer and using ASP for this is new to me.
Here is the test page that includes the form
What is currently happening is that it always directs to the error page and then does nothing. I had a previous variation that would show the thank you page if fields had something in them, but then it didn't e-mail.
I want it to check that there is something filled in for the required fields (I realize the e-mail address should also be validated, but that's secondary to getting the form to actually send e-mails).
I understand that ASP can be written using vbscript or JavaScript (below is vbscript, I think). I'm not sure it makes a difference for this site, but I'm open to switching to JavaScript syntax for this.
Normally I would use PHP, but this site has always been in ASP and it would take a while to switch to PHP. It's likely in my client's best interest to not make big changes just for one form, and I'm not sure they would play well together if I tried to process the form with PHP.
I have been looking at various tutorials, but I'm not figuring out what the problem is on my own. The tutorials I've found don't all use the same method, so that hasn't really been helping me understand exactly what's causing the issue either. There were some tutorials I found that mentioned specifying the SMTP server, but it seems like there should be a way for it to work without that.
Any help is appreciated, even if it's another tutorial link. Thanks in advance!