The way I understand it, you want to have new textboxes appear due to an onClick event attached to a button. If that is incorrect, please clarify the post a bit.
To proceed with my understanding, let me preface: You will not need PHP to accomplish this task. A little CSS and Javascript will do the trick.
<html>
<!-- CSS Declaration -->
<head>
<style type="text/css">
/* Sets class for the text box with a hidden property */
.hide {
display:none;
}
/* Sets class for the text box with a visible property */
.show {
display:block;
}
</style>
</head>
<body>
<input type="button" value="Show" onclick="document.getElementById('MyBox').className='show';" />
<input type="button" value="Hide" onclick="document.getElementById('MyBox').className='hide';" />
<br />
<br />
<!-- Hide and Show this DIV with the buttons above -->
<div id="MyBox" class="hide">
<input type="text" name="TextBoxName" />
</div>
</body>
</html>
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Offline 1,641 posts
since Jul 2008