Hi,

I hit a very strange bugs (not sure even it is a bug
yet) when using WebWare. The context is in a web form:
example code as:

<html><body>
<script language="JavaScript">
function doe() {
estr=document.dosubmit.rand_str.value+document.login.password.value;
document.dosubmit.challenge.value=estr;
//
document.dosubmit.username.value=document.login.username.value;
return true;
}
</script>
<form action="manage_shop.psp?do=login" method="POST"
name="login" autocomplete=off>
<table align="center"><TR><TD><h1>Please login first
</h1></TD></TR>
<tr><TD>Password: </TD><td><input type="password"
name="password"></td></tr> 
</form>
<form name="dosubmit" action="http://localhost/t.php";
method="POST" onsubmit="return doe();">
<input type="hidden" name="rand_str"
value="3c2252111e841ab386a7f76b346e4448">
<input type="hidden" name="challenge">
<tr><TD>Username: </TD><td><input type="text"
name="username"></td></tr>
<tr><TD colspan="2"><input type="submit" name="login"
value="login"></TD></tr>
</table>
</body></html>

if user click submit, JavaScript function doe() would
set form hidden field challenge to a value. The psp
file should get that value. But i got an empty string
which is very strange to me.

If I redirect it to a php script to test the field,
yes it (challenge) is empty.

The exact html code above (you can copy it and paste
into a new html file and test) if running with apache
or skunk web, the challenge var is not empty (expected
behaviour). I do not understand why, JavaScript runs
in client box, and user submit it will send a request
to (even out side webkit) a URL which has php and
print out the code. And the variable is gone.

What am I doing wrong , please comment.


S.KIEU

Send instant messages to your online friends http://au.messenger.yahoo.com 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to