HTML form running a script

Status
Not open for further replies.

beefkirky

Ars Scholae Palatinae
802
Here is what i want to have happen:

Two frames on the main page. The top frame contains a button, the bottom frame is intially empty.

Users come to the page and click the button. When the button is clicked, a cgi (or perl script) runs, producing an html output file.

Once the cgi has run, the bottom frame picks up the outputted html page and displays it.

So this way, each time to button is clicked, the cgi runs and outputs its html file so that the browser can display the latest results.

I can use HTML, PERL, and that Javascript.

PHP, ASP, all that is out. Just plain simple HTML/CGI.

Can anyone through me a freakin' bone here?

Thanks,
 

OneFootsTheSame

Smack-Fu Master, in training
70
... or this:

code:<HR>
Code:
main.html
<html> 
<frameset rows="20%,80%"> 
  <frame src="top.html" name="top"> 
  <frame src="empty.html" name="main"> 
</frameset> 
</html><P>top.html
<html><body><a href='stuff.html' target='main'>LoadIt</a></body></html><P>empty.html
<html><body>this is empty</body></html><P>stuff.html
<html><body>this is your CGI</body></html>

This works great if you're using images for buttons and can wrap them in an href. If you're using a form, see above. Obviously, this is not the end all be all list of how to approach the problem. if you need to post data to your CGI, then things get more complex. This should get you started though.
 
Status
Not open for further replies.