nitation Posted September 2, 2008 Share Posted September 2, 2008 Good day, I am trying to achieve something of this nature. When a user click a link, an input box should appear below the link without the page loading. See example below click here-> an input should appear below <form name="formA" action="" method="post"> <input name="test_box" type="text" size="10"> <input name="sub" type="submit" value="submit"> </form> Link to comment https://forums.phpfreaks.com/topic/122413-phpajax-form-processing/ Share on other sites More sharing options...
Ken2k7 Posted September 2, 2008 Share Posted September 2, 2008 <form name="formA" action="" method="post"> <a href='javascript:void(0);' onclick='this.parentNode.test_box.style.display="block"'>Click here</a><br /> <input name="test_box" type="text" size="10" style='display:none;'> <br /> <input name="sub" type="submit" value="submit"> </form> Edit: Wrong section. Link to comment https://forums.phpfreaks.com/topic/122413-phpajax-form-processing/#findComment-632081 Share on other sites More sharing options...
nitation Posted September 2, 2008 Author Share Posted September 2, 2008 @ken2k7 I have tried the code you provided, but its not displaying the form. Also the submit button appears before click ( CLICK HERE ) Thanks in advance Link to comment https://forums.phpfreaks.com/topic/122413-phpajax-form-processing/#findComment-632090 Share on other sites More sharing options...
Ken2k7 Posted September 2, 2008 Share Posted September 2, 2008 Again, wrong section. This question should be in HTML or JavaScript, but go there since it's more appropriate. And because you posted this there too. http://www.phpfreaks.com/forums/index.php/topic,214745.msg981026.html#msg981026 Link to comment https://forums.phpfreaks.com/topic/122413-phpajax-form-processing/#findComment-632100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.