navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Editing the fpdbform.inc in frontpage2000

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Editing the fpdbform.inc in frontpage2000
Page: [1]
 
momof4boys

 

Posts: 21
From: None
Status: offline

 
Editing the fpdbform.inc in frontpage2000 - 3/19/2001 20:06:00   
I have edited this and it works but the form info comes into the email as a link with & and + symbols and it is all in one line.
What do I need to do to get this info into the email body in a way that is more presentable?

sFrom = Request.Form("EMailAddress")
sTo = "midwestdreams@yahoo.com"
sSubject = "My Ad"
sBody = Request.Form
----------------
Set myCDONTSMail= CreateObject("CDONTS.NewMail")
myCDONTSMail.BodyFormat= 1
MyCDONTSMail.MailFormat= 0
myCDONTSMail.Importance= 2
myCDONTSMail.Send sFrom, sTo, sSubject, sBody
Set myCdontsMail= Nothing
-------------------

This is how it shows up in Email
-------------------
VTI-GROUP=0&MemberID=1321564869&City=Wichita&State=Kansas&EmailAddress=mom_of_4boys@yahoo.com&Category=Antiques%2FCollectables&ItemName=Testing21&Description=this+is+just+a+test&Pr ice=00&B1=Submit
--------------------
I sure hope somebody can help me.

Thanks in advance!!!!!
Christina


Vince from Spain

 

Posts: 658
From: Madrid Spain
Status: offline

 
RE: Editing the fpdbform.inc in frontpage2000 - 3/20/2001 23:10:00   
Hi Christina,
the bit that is getting you into the pickle is the line . . .

sBody = Request.Form

which will just make the body of the message all the variables that have been posted to the page, formatting and all.

To format it a bit more nicely, try for instance replacing it with . . .

sBody = "MemberID = " & Request.Form("MemberID") & vbcrlf & _
"City = " & Request.Form("City") & vbcrlf & _
"State = " & Request.Form("State") & vbcrlf & _
"Email = " & Request.Form("EmailAddress") & vbcrlf & _
. . . . . . (and so on until) . . . .
"Price = " & Request.Form("Price") & vbcrlf


All the best

Vince

------------------
Internet Business Solutions S.L.(Spain)


(in reply to momof4boys)
momof4boys

 

Posts: 21
From: None
Status: offline

 
RE: Editing the fpdbform.inc in frontpage2000 - 3/20/2001 23:44:00   
Ok
Lookin over my message it looks like I left a bunch out....anyway this is what I have now......Function FP_FormConfirmation(szCharset, szTitle, szmsg1, szUrl, szMsg2)

sFrom = Request.Form("EMailAddress")
sTo = "midwestdreams@yahoo.com"
sSubject = "My Ad"

sBody = "MemberID = " & Request.Form("MemberID") & vbcrlf & _
"City = " & Request.Form("City") & vbcrlf & _
"State = " & Request.Form("State") & vbcrlf & _
"Email = " & Request.Form("EmailAddress") & vbcrlf & _
"Category = " & Request.Form("Category") & vbcrlf & _
"ItemName = " & Request.Form("ItemName") & vbcrlf & _
"Description = " & Request.Form("Description") & vbcrlf & _
"Price = " & Request.Form("Price") & vbcrlf & _

Set myCDONTSMail= CreateObject("CDONTS.NewMail")
myCDONTSMail.BodyFormat= 1
MyCDONTSMail.MailFormat= 0
myCDONTSMail.Importance= 2
myCDONTSMail.Send sFrom, sTo, sSubject, sBody
Set myCdontsMail= Nothing

And I'm not even getting my form to display...
What did I do wrong????


(in reply to momof4boys)
momof4boys

 

Posts: 21
From: None
Status: offline

 
RE: Editing the fpdbform.inc in frontpage2000 - 3/20/2001 22:00:00   
Ok....
Vince
I don't know what I did wrong when I tried your suggestion the first time but I tried it again and it works perfectly.

Thank You Very Much!!!!!


(in reply to momof4boys)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Editing the fpdbform.inc in frontpage2000
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts