BrianM Posted May 5, 2008 Share Posted May 5, 2008 Can somebody show me or point me to an example showing how to making a text field and submit button come up after clicking a link, please? Quote Link to comment Share on other sites More sharing options...
trq Posted May 5, 2008 Share Posted May 5, 2008 Um, have the link point to a page which shows the form? This really has nothing to do with php. Quote Link to comment Share on other sites More sharing options...
947740 Posted May 6, 2008 Share Posted May 6, 2008 You could use <div> tags and javascript. Not very difficult. Quote Link to comment Share on other sites More sharing options...
dezkit Posted May 6, 2008 Share Posted May 6, 2008 <script type="text/javascript"> function change(ele) { element = document.getElementById(ele); (element.style.display == "block") ? element.style.display = "none" : element.style.display = "block"; }</script> <div onclick="change('below')"> <a href="javascript:void(0)">Click here to show the form</a> </div> <div id="below" style="display:none; "> <br><br>The form like goes here </div> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.