Hi..
Pl help me for my query....
I want to display textboxes in another page automatically, by giving value to previous page.
(For eg: if i give value 4 to the textbox then submit. It will open new small window with 4 textboxes with id.)
Please Excuse me for my english is bad.......
How to display textboxes automatically in PHP?
Moderator: General Moderators
-
rajkumar.shri
- Forum Newbie
- Posts: 5
- Joined: Mon Sep 15, 2008 1:56 am
Re: How to display textboxes automatically in PHP?
It will just give you an idea to sketch your requirement.
nextPage.php
Code: Select all
<form action="nextPage.php" method="post" target="_blank">
<input type="text" name="loopValue" />
<input type="button" value="submit" onclick="this.form.submit();"/>
</form>
Code: Select all
<form action="" method="post">
<?
for($i=0;$i<$_POST['loopValue'];$i++){
?>
<input type="text" name="text" />
<?
}
?>
</form>