PDA

View Full Version : Invisible form!!


BusterLee
10-27-2002, 08:20 PM
Not sure if this should be here or in the CGI but here goes.

I am adding an invisible form onto a 404 page so that I can be emailed with refer and stuff etc.

Assuming the form is called "404report" what would be the onload command be to submit the details automatically?

Cheers in advance

PlatinumProject
10-28-2002, 01:39 AM
could you use the hidden tags>?

<form name="" method="post" action="" >

<input type="hidden" name="" value="">
<input type="hidden" name="" value="">

</form>
? not sure? o well you can try it

BusterLee
10-28-2002, 01:43 AM
Thanks.

I have actually thi second just found a mega easy script that reports for me. Works well so I am happy.

Thanks for your help. At least I can now see 404's and where they came from!!

PlatinumProject
10-28-2002, 02:11 AM
ok np

Mhtml
10-28-2002, 10:55 AM
First off you would have to name the form...

so this example would work perfectly...

<body onLoad="RefererForm.submit()">
<form name="RefererForm" action="processor.xyz" method="post">
<input type="hidden" name="ABC">
</form>


Any forms inside the <form> tags regardless of type or contents will be submitted.

bcarl314
10-28-2002, 11:19 AM
Why noy use a server side script to do it?

Set your ErrorDocument to sendEmail.php

In you php script send the info to yourself!

Just a thought

BusterLee
10-28-2002, 11:24 AM
I found a script called: errorbot.cgi

Only had to customise perl location and select what I wanted to be notified of.

No admin panel, no junk extras... simple and more than ample.

It reports 401,403,500 and whatever you add. Simply sends email stating file requested, referer time and IP.

Only thing was is it said that it edited your .htaccess for you but it didn't so just had to add line pointing to script.

I had a look at quite a few scripts and when trying them they all seem to need mega changes and had admin panels etc which I really didnt need.

If anyone wants the code or URL post here.