submit and button question

liunx

Guest
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. <br />
<br />
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. <br />
<br />
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.<br />
<br />
My questions<br />
Can you change the action of the form and then submit the form using javascript?<br />
<br />
Is there a javascript solution to this.<br />
<br />
Can I make the value of one form object be the value of another form object i.e. <br />
<br />
<form name=form1 method=post action=.....><br />
<input type='text' name='name1' value='value1'><br />
</form.<br />
<br />
<form name=form2 method=post action=....><br />
<input type='hidden' name='name2' value=[valueof name1]><br />
</form><br />
<br />
<br />
<br />
I am not sure how to do this or if this is even possible.<br />
<br />
Mike@spb<!--content-->Can you change the action of the form and then submit the form using javascript?Yes.<br />
document.formname.action = 'whatever';<br />
document.formname.submit(); <br />
Can I make the value of one form object be the value of another form object i.e.document.form2.name2.value = document.form1.name1.value<!--content-->
 
Back
Top