marisha5 0 Newbie Poster

Hello,

I am designing a data-entry form with the following characteristics
1) The user enters the number of rows he wants to enter
2) Based on the entered value I am generating a table kind of structure
2.1) I am dynamically generating a drop down list that is being populated from the Db. I am basically querying the DB parsing the return string in an array.

MY PROBLEM IS
--------
Below is the structure of my code
<form method = "post" name = "form2">
HERE IS GET THE NUMBER OF RECORDS USER WANTS TO ENTER
</form>
<?php
if(array_key_exists('form2', $_POST))
{
echo <form name = 'form3' method = 'post'>
IN GOES MY LOGIC FOR THE DYNAMIC TABLE BASED ON THE NUMBER OF RECORS ENTERED BY USER IN form2
echo</form>
}
?>

I am not able to cpature the POST of form3 may be because it is a nested form. Please give me suggestiong and any other way I can do the same thing.

MY CLIENT IS NOT ALLOWING ME TO USE TWO PAGES I HAVE TO DO ALL THIS IN ONLY ONE PAGE.
IS THIS A GOOD DESIGN IDEA?

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.