MFRWC Example: Difference between revisions

From SWCP Support Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:
   <form method="POST" id="mfrwc" name="mfrwc" action="/cgi-bin/mfrwc">
   <form method="POST" id="mfrwc" name="mfrwc" action="/cgi-bin/mfrwc">


   <input type="hidden" NAME="form-owner" VALUE="jamii@swcp.com">
   <input type="hidden" name="form-owner" VALUE="jamii@swcp.com">
   <input type="hidden" NAME="email-field" VALUE="email">
   <input type="hidden" name="email-field" VALUE="email">
   <input type="hidden" NAME="subject-field" VALUE="subject">
   <input type="hidden" name="subject-field" VALUE="subject">
   <input type="hidden" NAME="subject"
   <input type="hidden" name="subject"
   value="Consultant Directory Form Submission">
   value="Consultant Directory Form Submission">
   <input type="hidden" NAME="return-link-name" VALUE="Jamii's Home Page">
   <input type="hidden" name="return-link-name" VALUE="Jamii's Home Page">
   <input type="hidden" NAME="return-link-url"
   <input type="hidden" name="return-link-url"
   value="http://www.swcp.com/~jamii">
   value="http://www.swcp.com/~jamii">
    
    
   Name: <INPUT TYPE=TEXT NAME="name" size=36><BR>
   Name: <input type=text name="name" size=36><BR>
   Email: <INPUT TYPE=TEXT NAME="email" size=36>
   Email: <input type=text name="email" size=36>
   <P>
   <P>
   Enter your comments in the box below:<br>
   Enter your comments in the box below:<br>


   <TEXTAREA NAME="comments" ROWS=8 COLS=40></TEXTAREA>
   <textarea name="comments" rows=8 cols=40></textarea>
   <P>
   <P>
   <style = "text/style">
   <style = "text/style">
   #imgCaptcha { margin: 0 30px; border: black solid 1px; }
   #imgCaptcha { margin: 0 30px; border: black solid 1px; }
   </style>
   </style>
   &lt;IMG ID="imgCaptcha" src='/cgi-bin/gencap.pl?789'&gt;<br&gt;<br&gt;
   &lt;img id="imgCaptcha" src='/cgi-bin/gencap.pl?789'&gt;<br&gt;<br&gt;
   Please type in the letters above
   Please type in the letters above
         &lt;INPUT id="txtCaptcha" TYPE="text" name="verify" size=8
         &lt;input id="txtCaptcha" type="text" name="verify" size=8
                 onKeyPress="onlyOnReturn(event, document.mfrwc)";&gt;<br&gt;
                 onKeyPress="onlyOnReturn(event, document.mfrwc)";&gt;<br&gt;
   &lt;INPUT id="regCaptcha" type="button" value="Give me different text"
   &lt;input id="regCaptcha" type="button" value="Give me different text"
         NAME="regCaptcha" onclick="regenCaptcha(document.mfrwc)";&gt;
         name="regCaptcha" onclick="regenCaptcha(document.mfrwc)";&gt;
   &lt;INPUT id="btnCaptcha" type="button" value="Send Comments"
   &lt;input id="btnCaptcha" type="button" value="Send Comments"
         NAME="btnCaptcha" onclick="getParam(document.mfrwc)";&gt;
         name="btnCaptcha" onclick="getParam(document.mfrwc)";&gt;
   &lt;INPUT TYPE="reset" VALUE="Clear Form"&gt;
   &lt;input type="reset" value="Clear Form"&gt;
   &lt;DIV id="response"&gt;&nbsp&lt;/DIV&gt;
   &lt;div id="response"&gt;&nbsp&lt;/div&gt;


   &lt;/FORM&gt;
   &lt;/form&gt;
   &lt;/BODY&gt;
   &lt;/body&gt;
   &lt;/HTML&gt;
   &lt;/html&gt;
   </PRE>
   </PRE>

Revision as of 15:37, 28 May 2009

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
   "http://www.w3.or g/TR/xhtml1/DTD/xhtml1 transitional.dtd">
 <html>
  <head>
  <title >JDIR</title>
  <script language="JavaScript" type="text/javascript"
           src="http://captcha.swcp.com/ajax_captcha.js">
  </script>
  </head>
  <body>
  <H1>The JDirectory</H1>

  <form method="POST" id="mfrwc" name="mfrwc" action="/cgi-bin/mfrwc">

  <input type="hidden" name="form-owner" VALUE="jamii@swcp.com">
  <input type="hidden" name="email-field" VALUE="email">
  <input type="hidden" name="subject-field" VALUE="subject">
  <input type="hidden" name="subject"
  value="Consultant Directory Form Submission">
  <input type="hidden" name="return-link-name" VALUE="Jamii's Home Page">
  <input type="hidden" name="return-link-url"
  value="http://www.swcp.com/~jamii">
   
   Name: <input type=text name="name" size=36><BR>
   Email: <input type=text name="email" size=36>
   <P>
   Enter your comments in the box below:<br>

   <textarea name="comments" rows=8 cols=40></textarea>
  <P>
  <style = "text/style">
  #imgCaptcha { margin: 0 30px; border: black solid 1px; }
  </style>
  <img id="imgCaptcha" src='/cgi-bin/gencap.pl?789'><br><br>
  Please type in the letters above
         <input id="txtCaptcha" type="text" name="verify" size=8
                 onKeyPress="onlyOnReturn(event, document.mfrwc)";><br>
  <input id="regCaptcha" type="button" value="Give me different text"
         name="regCaptcha" onclick="regenCaptcha(document.mfrwc)";>
  <input id="btnCaptcha" type="button" value="Send Comments"
         name="btnCaptcha" onclick="getParam(document.mfrwc)";>
  <input type="reset" value="Clear Form">
  <div id="response">&nbsp</div>

  </form>
  </body>
  </html>