
June 14th, 2001, 10:25 AM
|
|
Junior Member
|
|
Join Date: Jun 2001
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Replacing Javascript with JSP??
As with many of the posts to this board, this is rather urgent.
In a home page, I currently have the following:
---------------------------------
<a href = "javascript:document.mainForm.submit()">Log in to portal</a> <form action="file1.jsp" method="POST" NAME="mainForm">
<input type=hidden name=USER value=guest>
<input type=hidden name=PASSWORD value=guest >
<input type=hidden value=/file2.jsp name=target>
---------------------------------
As with any HTML or Javacript code, this will obviously be available to anyone who viewed the soure.
What I am looking for, is to somehow have the functionality in the code above, which is essentially posting to a form with hidden variables, replaced with something that won't be viewable by the user. My guess is that I can do some server side coding, but I can place my finger on what to do.
Thanks,
Alex
|