Page 1 of 1

one php page extending how ?

Posted: Wed Apr 08, 2009 1:12 am
by nagapraveen
one webpage contain login fields and below one opton that is register when ever click register that page extend and displaying register fields give me that javascript code or php code

Re: one php page extending how ?

Posted: Wed Apr 08, 2009 3:11 am
by watson516
All right, I don't really understand anything you just typed so I am going to guess that you want a login page that has a link that, when clicked, will show a hidden registration form below it. Correct?

You could use javascript to accomplish this. When you create the page, put the registration form into a div and add style="display:none;" and then using javascript, change the display to block and you're good to go. Im not the best with javascript but something like this might work

Code: Select all

<script type="text/javascript">
function displayReg() {
    document.getElementById('registration-form').style.display = "block";
}
</script>
...
<a href="#" onclick="displayReg()">Register</a>
<div id="registration-form" style="display:none;"></div>