in reply to Can the same script create a form and then process the form's contents on Submit?
<input type=submit name=in value="Format HDD">
And the browser will submit a in=Format%20HDD key-value pair to you. So upon loading you look for this key and value and if you have it you've been submitted. Pseduo-code follows.
#use CGI or whatever; if( $param{in} eq 'Format HDD' ){ #process form submission #redirect elsewhere or print status screen } else{ #print form }
-- perl -p -e "s/(?:\w);(<A HREF="/index.pl?node=st&lastnode_id=3333">st< +/A>)/'\$1/mg"
|
|---|