Quote:
Originally Posted by felixtgomezjr
I dont want to change the way the website do the authentication.
|
So now I'm a little confused. Are you making an app that communicates with a php file like vertmonkee specified? Or are you making a website? If it's a site, you could build the form as usual, and then use the CSS display attribute to hide it, and a javascript function to change the display...like
PHP Code:
<style>#hidden {display:none;}</style>
<script>function view(id, action) {
if (action=="hide") {
document.getElementById(id).style.display = "none";
} else {
document.getElementById(id).style.display = "block";
}
}
</script>
<body>
<span onclick="view('hidden','show');" style="text-decoration:underline;">login</span>
<br>
<span id="hidden"><span onclick="view('hidden','hide');">this is your form code</span></span></body>
re:POST,
this thread (and others, search for "setHTTPMethod POST") have information