[Web4lib] Form coding problem

Edward Spodick lbspodic at ust.hk
Tue Jun 7 21:41:20 EDT 2005


We have a subscription to TCE Today, and I am trying to ease the login for our users.  I am trying a script-generated form, with the needed username and password variables.  But there is a third form input element, which is a check box on their login form.  If I leave it as a checked checkbox in the script-generated code, the login works.  If I convert it to a hidden input element, with value="yes", the login fails.  If someone could help me figure out what I am doing wrong I would appreciate it.

- - - - -
Form which WORKS when the submit button is pressed:
<form name="form1" method="post" action="http://www.tcetoday.com/tce/login1.asp" target="_top">
	   <input type="hidden" name="memberno" value="username">
	   <input type="hidden" name="pinno" value="password">
	   <input type="checkbox" name="chkIsOrg" id="chkIsOrg" checked>
	   <input type="submit" value="CONNECT NOW">
</form>
- - - - -
Form which FAILS when the submit button is pressed:
<form name="form1" method="post" action="http://www.tcetoday.com/tce/login1.asp">
	   <input type="hidden" name="memberno" value="username">
	   <input type="hidden" name="pinno" value="password">
	Important - If you are not a member of IChemE, but have paid for a magazine subscription, 
	check here
	   <input type="hidden" name="chkIsOrg" value="yes">
	   <input type="submit" value="CONNECT NOW">
</form>
</body></html>
- - - - -
GET version which WORKS:
<http://www.tcetoday.com/tce/login1.asp?memberno=username&pinno=password&chkIsOrg=yes>
- - - - -

-Edward


-- 
Edward F Spodick, Information Technology Manager
Hong Kong University of Science & Technology Library
lbspodic at ust.hk  tel:852-2358-6743 fax:852-2358-1043


More information about the Web4lib mailing list