Hi All,
I an very new to HTML/CGI and web development in general but have a simple query.
I want a HTML form to run a server-side perl script that returns a table which is then presented/rendered in the clients browser. I would like this to happen without having a button on the clients page which must be clicked before the script runs and returns data, although I have managed to get it to work this way. How can I get it to happen without the button? I understand there is a way using JavaScript but have been unsuccessful in attempting this. My working HTML is below. Any ideas?
<META http-equiv=’Content-Type’ content=’text/html; charset=UTF-8′>
<link rel=”stylesheet” href=”xxx.css” type=”text/css”>
<HTML>
<!– SCRIPT LANGUAGE=”JavaScript”>
function sendSMS()
{
documen.zzz_Logging.submit();
}
<!– img src=”/images/but_send_live.gif” WIDTH=”63″ HEIGHT=”28″ onClick=”sendPPP(‘Live’);”– >
</SCRIPT –>
<BODY>
<CENTER>
<H1>Welcome To The Home Page For The <i>SSS</i> PPPPackage.</H1>
</CENTER>
<FORM METHOD=”POST” ACTION=”csv2table.pl” NAME=”SSS_Logging”>
<!– FORM VARIABLES –>
<INPUT TYPE=”hidden” NAME=”CAPTION” VALUE=”PMF_TEST”>
<INPUT TYPE=”hidden” NAME=”CSV_DIR_NAME” VALUE=”.webm_xxx”><br>
<INPUT TYPE=”submit” VALUE=”submit”>
<!–SELECT NAME=”srcTON” SIZE=”1″>
<OPTION VALUE=”1″>International</OPTION>
</SELECT–>
</FORM>
</BODY>
</HTML>
Thanks
Pat