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? Link to comment https://forums.phpfreaks.com/topic/104283-click-link-form-displays-on-page/ 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. Link to comment https://forums.phpfreaks.com/topic/104283-click-link-form-displays-on-page/#findComment-533904 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. Link to comment https://forums.phpfreaks.com/topic/104283-click-link-form-displays-on-page/#findComment-534034 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> Link to comment https://forums.phpfreaks.com/topic/104283-click-link-form-displays-on-page/#findComment-534048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.