I have a software program that genrates .htm webpages. It will not allow me to change extension to .asp It creates e.g. 1000 pages named 1.htm,2.htm ... 1000.htm. The "Title" of each page is the word not number. e.g. <title>One</title>. etc.
I would like to send a CDONTS email when the page loads. I understand cdonts and have a Notice.asp page that sends the type of mail I want.
I would like to add something like an OnLoad() Function (Not on Body Tag) that would say submit a form to action page Notice.asp then return to the .htm page.
I tried the onload submit form and in notice.asp I caputured the url of the referrer (1.htm) in a session variable and then redirected to that to get back.
Is this the right approach, and how can I avoid getting into a loop on the return to 1.htm???
Any suggestions or leads certainly appreciated.