Below are some code snippets, the purpose of which is to quietly notify me by email when a particular site is requested. You can see that I use Matt Wright's famous formmail.cgi, which insists on sending the user to a redirect page.
This email code is in the index.html of the site.
The site's real stuff is in the redirected main.html
The question are:
1. Will this interfere with search engine spiders, causing the real stuff never to be seen?
2. Do you know of any form2email program that doesn't insist on a "thank-you" page, so that the process can be put on the main page, instead of a lead-in page?
Thank you for a fine forum, Helmut
Snippets of code:
var visitorname = GetCookie('visitorname');
var visitoremail = GetCookie('visitoremail');
function InitializeForm() {
document.notify.realname.value = visitorname;
document.notify.email.value = visitoremail;
document.notify.submit();
}
<body onload="InitializeForm();">
<form name="notify" action=" method="POST">
<input type=hidden name="recipient" value="engcomp@ozemail.com.au">
<input type=hidden name="subject" value="notify main">
<input type=hidden name="redirect" value=" <input type=hidden name="email" value="noEmail">
<input type=hidden name="realname" value="noName">
<input type=hidden name="env_report" value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_USER_AGENT,HTTP_REFERER">
</form>
</body>
This email code is in the index.html of the site.
The site's real stuff is in the redirected main.html
The question are:
1. Will this interfere with search engine spiders, causing the real stuff never to be seen?
2. Do you know of any form2email program that doesn't insist on a "thank-you" page, so that the process can be put on the main page, instead of a lead-in page?
Thank you for a fine forum, Helmut
Snippets of code:
var visitorname = GetCookie('visitorname');
var visitoremail = GetCookie('visitoremail');
function InitializeForm() {
document.notify.realname.value = visitorname;
document.notify.email.value = visitoremail;
document.notify.submit();
}
<body onload="InitializeForm();">
<form name="notify" action=" method="POST">
<input type=hidden name="recipient" value="engcomp@ozemail.com.au">
<input type=hidden name="subject" value="notify main">
<input type=hidden name="redirect" value=" <input type=hidden name="email" value="noEmail">
<input type=hidden name="realname" value="noName">
<input type=hidden name="env_report" value="REMOTE_HOST,REMOTE_ADDR,REMOTE_USER,HTTP_USER_AGENT,HTTP_REFERER">
</form>
</body>