troubleshooting Question

asp: having a problem transfering html name and email address to contactform.asp

Avatar of westdh
westdhFlag for United States of America asked on
ASPMicrosoft Development
4 Comments1 Solution315 ViewsLast Modified:
Having a problem transfering html name and email address to contactform.asp.
I have included the html form, and where it is failing in the contactform.asp. the following  response.write are blank all i get in the return msg. is: test , name and email are blank, i.e. empty

response.write("test: " + request.Form("name") + "  " + request.Form("email"))

something is wrong but where.

<form action="contactform.asp" method="post" enctype="multipart/form-data" name="contactform">

<table width="500" border="0" cellspacing="4" cellpadding="0" id="contactform">
<td width="178">Name</td>
<td width="322" align="left"><input type="text" name="name" id="name" /></td>
<td align="left"><input type="text" name="address" id="address" /></td>
<td align="left"><input type="text" name="city" id="city" /></td>
<td align="left"><input name="state" type="text" id="state" size="10" />
&nbsp;Zip <input name="" type="text" size="4" /> </td>
<td>Email (required)</td>
<td align="left"><input type="text" name="email" id="email" /></td>
<td align="left"><input type="text" name="phone" id="phone" /></td>
<td>Best time to call</td>
<td align="left"><select name="bestTime" id="bestTime" value="Choose one...">
<option>Choose one...</option> 
<td align="left"><textarea id="message" cols="45" rows="5"></textarea></td>
<td align="left">&nbsp;</td>

<td align="left"><input type="submit" name="button" id="button" value="Submit" /> &nbsp;
<input type="reset" name="reset" id="reset" value="Reset" /></td>


Const cdoBasic = 1 'Use basic (clear-text) authentication.
Const cdoSendUsingPort = 2
'cdosys related
Dim iMsg
Dim iConf
Dim Flds
'mail related
Dim strMsg
Dim strTo
Dim strCC
Dim strFrom
Dim strSubject
Dim strTextBody

'==================begin your configuration
'you must have a username and pass word or you will not be able to send
Dim sendusername	: sendusername	= ""
Dim userpassword	: userpassword	= "xxxxxx"
Dim smtpserver	 : smtpserver	= ""

'Dim sendusername	: sendusername	= ""
'Dim userpassword	: userpassword	= "xxxxxx"
'Dim smtpserver	 : smtpserver	= ""
'end your configuration

response.write("test: " + request.Form("name") + "  " + request.Form("email"))

if (len(TRIM(request.Form("name"))) <> 0) and (len(TRIM(request.Form("email"))) <> 0) Then
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros