Joined: 17 Sep 2006
|Posted: Sun Sep 17, 2006 8:46 am Post subject: submitting a form in post method
Uptill now my only use of ajax was with the following function:
// PageSrc is the page to load...
// LngAddrs determines weather to append the sid with a ? or a & ...
document.getElementById(ETC).innerHTML="Please wait, loading...";
alert ("Browser does not support HTTP Request");
xmlHttp.onreadystatechange=stateChanged; // SPAN WILL UPDATE
//CONTENT IN HERE...
this is set by a get method (as you can see), having the pattern "filename.asp?getvar=aaa&sid=rndnum".
I have 2 questions:
1) Is there any security issue having this way of working with forms containing passwords or such?
The address itself is not shown by the browser, so I can't see why at all should I move to the POST method.
2) How do I change the method to post?