Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing variables between shtml (SSI) pages

38 views
Skip to first unread message

Luis Gonçalves

unread,
Oct 29, 2011, 3:10:04 PM10/29/11
to
Hi All

This is the file login_u.shtml


<form action="login1.shtml" method="post">
<p> <br>
<font color="#800000"><b>Name:</b></font>
<br>
<span style="BACKGROUND-COLOR: #c0c0c0">
<input name="user" ></span><br><br>
<b><font color="#800000">Password:</font></b>
<br><input type="password" name="pass" >

<br><input type="submit" value="LOGIN"></a>
</p>
</form>

and the login1.shtml (with SSI instructions) is

<!--#if expr="$QUERY_STRING = 'user=guest&pass=guest'" -->
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=Up_Down.html">
<!--#elif expr="$QUERY_STRING = 'user=some_user&pass=123'" -->
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=Up_Down.html">
<!--#endif -->

The login1.shtml is wrong

How do I match login1.shtml to test the "user" e "pass" variables from
login_u.shtml?

If any one has a better way let me know.

The server is runing "SSI" scripts (.shtml) well, I tested.

Thanks

Luis Gonçalves
0 new messages