Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax for Request.Form 1

Status
Not open for further replies.

ringadeal

Technical User
Jan 16, 2008
67
US
What is the proper syntax for this code as it is not working as intended.

Code:
If Request.Form("Email")<>"" Then
myMail.To=""&Request.Form("Email")&""
Else
myMail.To=""&Session("SoldToEmail")&""
End If
 
You don't need the quotes.

The values returned by Session("xxx") and Request.Form("xxx") will automatically be interpretted as strings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top