mevasquez
02-14-2003, 06:22 PM
I am using php to output my html because I am accessing a db. What I want to be able to do is to nest a form but that is not allowed in html.
What I have is a list of items on a form that were retrived from a database. The data from the db fills in the form data. It acts like a template, which it is.
What I want to be able to do is to allow the user to change and save the template, if he/she so desires, or make changes on the template form and then submit the form.
My questions
Can you change the action of the form and then submit the form using javascript?
Is there a javascript solution to this.
Can I make the value of one form object be the value of another form object i.e.
<form name=form1 method=post action=.....>
<input type='text' name='name1' value='value1'>
</form.
<form name=form2 method=post action=....>
<input type='hidden' name='name2' value=[valueof name1]>
</form>
I am not sure how to do this or if this is even possible.
Mike@spb
What I have is a list of items on a form that were retrived from a database. The data from the db fills in the form data. It acts like a template, which it is.
What I want to be able to do is to allow the user to change and save the template, if he/she so desires, or make changes on the template form and then submit the form.
My questions
Can you change the action of the form and then submit the form using javascript?
Is there a javascript solution to this.
Can I make the value of one form object be the value of another form object i.e.
<form name=form1 method=post action=.....>
<input type='text' name='name1' value='value1'>
</form.
<form name=form2 method=post action=....>
<input type='hidden' name='name2' value=[valueof name1]>
</form>
I am not sure how to do this or if this is even possible.
Mike@spb