---
title: "CDONTS HJÄLP"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/72788-cdonts-hjälp"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "McMoj"
published: "2003-04-01T14:38:42.000Z"
updated: "2003-04-01T14:49:19.000Z"
replies: 1
views: 189
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/72788-cdonts-hjälp"
---

# CDONTS HJÄLP

## #1 — McMoj, 2003-04-01T14:38Z

Det blir felet Expected end of statement i denna kod!
Hjälp mig!

\<html\>

\<head\>
\<title\>JamboHost\</title\>
\<style\>
\<!--
body         { font-family: Verdana; font-size: 9px; text-decoration: none }
table        { font-family: Verdana; font-size: 9px; text-decoration: none }
input        { font-family: Verdana; font-size: 9px; border-style: solid; border-width: 1; 
               padding: 1 }
option       { font-family: Verdana; font-size: 9px; text-decoration: none; border-style: 
               solid; border-width: 1; padding: 0 }
\--\>
\</style\>
\</head\>
\<body topmargin="0" leftmargin="0"\>
\<%
If Len(Request.Form("email")) \> 0 AND Len(Request.Form("subject")) \> 0 AND Len(Request.Form("message")) \> 0 Then 
Set newMail = CreateObject("CDONTS.NewMail")
newMail.From = Request.Form("email")
newMail.FromName = Request.Form("namn")
newMail.To = "michael.johansson@visit.se"
newMail.Subject = "JamboHost"
html = "Användar Namn: "Request.Form("username")" \<br\> Lösenord: "Request.Form("password")" \<br\> Mb: "Request.Form("mb")" \<hr\> Namn: "Request.Form("Namn")" \<br\> Email: "Request.Form("Email")" \<br\> Hemadress: "Request.Form("Hemadress")" \<br\> Postadress "Request.Form("Postadress")" \<br\> Land: "Request.Form("Land")" \<br\> Telefon: "Request.Form("Telefon")" \<br\> Mobil: "Request.Form("Mobiltelefon")" \<br\>"
newMail.Body = ""&html&""
newMail.Send
Set newMail = Nothing

End If
%\>
\<% Response.redirect "tack.asp" %\>
\</body\>
\</html\>

Permalänk: https://www.webforum.nu/p/72788

## #2 — Sebbe, 2003-04-01T14:49Z

:) 

```
<% 
If Len(Request.Form("email")) > 0 AND Len(Request.Form("subject")) > 0 AND Len(Request.Form("message")) > 0 Then 
Set newMail = CreateObject("CDONTS.NewMail") 
newMail.From = Request.Form("email") 
newMail.FromName = Request.Form("namn") 
newMail.To = "michael.johansson@visit.se" 
newMail.Subject = "JamboHost" 
html = "Användar Namn: " & Request.Form("username") & " <br> Lösenord: " & Request.Form("password") & " <br> Mb: " & Request.Form("mb") & " <hr> Namn: " & Request.Form("Namn") & " <br> Email: " & Request.Form("Email") & " <br> Hemadress: " & Request.Form("Hemadress") & " <br> Postadress " & Request.Form("Postadress") & " <br> Land: " & Request.Form("Land") & " <br> Telefon: " & Request.Form("Telefon") & " <br> Mobil: " & Request.Form("Mobiltelefon") & " <br>" 
newMail.Body = html
newMail.Send 
Set newMail = Nothing 
End If 

Response.redirect "tack.asp"
```

Permalänk: https://www.webforum.nu/p/998340

---

Tråden på webben: https://www.webforum.nu/amne/asp/72788-cdonts-hjälp
