Jump to content

Php/Ajax form processing


nitation

Recommended Posts

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

<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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.