Click to See Complete Forum and Search --> : Find out web page visited/cancelled
shanuragu
06-06-2003, 01:39 AM
Hi
How to find out whether a visitor Visited a perticular web page in a web site (like filled a form & continued) and moved to the next page or returned back by clicking back or lost net connection in between. Based the above condition alter automated email message (ie if visited or continued send email as continued . if visited and returned back to previous page as cancelled ).
Urgent Please help.
ShaRa
gerjan
06-06-2003, 06:20 AM
Add a visitor (ie name and e-mail) into a DB when it's logged in by the form.
The DB most contain cells with the names of every page in your website (and ofcourse the name and e-mail).
When visitors go to a particular page, just add +1 in the cell that stands for that page.
When a visitor goes to a particular page and the origional page in the DB is >0 then send an e-mail. Otherwise just dont.
shanuragu
06-06-2003, 06:42 AM
HI
Thanks ur timely help. It is working fine.
I have another problem, I have a form for registration purpose. Where in data is collected & inserted in ot the db table in the next page but an automated email message has to be sent to us giving the visitor details(form details), no matter what if he register (submit the registration form) or not (ie, back)
Please help
ShaRa
:confused:
gerjan
06-06-2003, 08:13 AM
I'm not sure if you mean this (I'm sure it's my poor English language, if you mean something else please let know):
But can't you check if you hostingprovider has a standard mail script you can put into your pages?
Most of them do! It would be the fastest/easyst way!
Nicodemas
06-06-2003, 08:17 AM
You want the form data that they have entered even if they never physically click the submit button?
You could try a javascript that submits the form when they exit the page <body onUnload="document.forms[0].submit()"> perhaps? Be aware that this would only submit what the user has put in up to the point they try to leave your page, if anything at all. This could submit the form and redirect them to wherever.
Although, why collect info when they don't want to submit it in the first place?
Are you familiar with sending e-mail via ASP? Use CDONTs to send the form details, or whatever mail component you have.
Example:
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "Bulletin Board Submission (WEBMASTER@smil.mil)"
objCDOMail.To = strEmail
objCDOMail.Subject = "Submission for Bulletin Board"
objCDOMail.Body = strBody
'Set the Mail to HTML
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Value("Reply-To") = Request.Form("requiredstrEmail")
''Send the Mail
objCDOMail.Send
shanuragu
06-07-2003, 12:48 AM
Thanks Rob,
thanks for ur timely help,
I am able to send email successfully using CDONTs, but couldn't send form field values. Email is automated the moment user leave the web page ie, continue to the next pg or back. Based on the navigation, along with the form filed values (if any) I had to alter the email msg (continue/cancelled).
Regarding collecting user info when they don't want to submit - it is only because, In our site Registration process in done using three web pages (submit in all), all are interrelated.
I just want to know if any user is visited any of the three pages & filled form field entries & later changed his/her mind to quit in the middle (reason may be anything like.. high price or too many details to submit etc).
Hope ur dought is cleared!!!
Regards
ShaRa
:D