Forum Moderators: coopster
Once that form has been entered, I want the next form to be available for data. and so on.
The problem I am having is getting the first form to be independant of the second form.
Any suggestions?
mine goes like this
person does a query on a DB for menus for a ranges or dates(yep I'm still on my menu thing) the person can then sellect via check boxes the days the want to edit sending them to another pages with a form for each day the current info is inserted for them into the fields(one field for each field in the db and one form for each row), they change what they want to change and then hit a single submit button. the submit action then changes "Updates" each database entry.
Is this kinda what you are going for?
Sarah
Specifically.. I am charged with creating a form that offers the user 6 (currently) options. To add, change, remove two seperate items. This does not connect to a database but does send an email to me.
I want the user to be able to select everything they want to do from the first page, the systematically do the tasks. For instance, if they want to add an item to the first form and change an item in the second one. They should be able to select the options that they want, click a "start" button. Then have a page generated to request the required information from the first form and then the second form. Then when the users submitts that data, it will verify and send the email.
The problem I am having is getting both forms to be seperate entities. If the user enters the data for one form then hits the submitt button, the form is sent and the other form is left out. If they do go back and fill in the other form, it resends the first email.
as includes.
then have the includes within If()
then have something like this(in real code instead of phudo code)
<form>
if(check box2 = true)
include form2
if(check box3 = true)
include form3
if(check box4 = true)
include form4
<submit button>
</form>
if you look closly you may be able to do your if statments in a while( ) with the numbers incrementing. you may have to do some string and array work maybe implode [us3.php.net]or explode [us3.php.net] them. And carefully name your files and checkbox names. add those into a numeric array or something.
Sarah
Now for the second and most important part.
If FormA is filled out but not FormB, can I get php to remove the instance of FormA without doing anything to FormB...
Not sure I am explaining that correctly...
FormA
FormB
Submitt
If user fills out FormA and hits submit, FormA sends an email with data. The same is true for FormB. I want to idiot proof this form. ie... If the user doesn't fill out FormA, the email is sent but destroys that form and only FormB is left.
Make any sense....?