help with two form in only one page...
Posted: Tue Feb 18, 2003 6:53 am
Hi all,
I need help in order to solve a problem. The problem is:
I have two forms in the same php page, each of this forms contains several text fields and one submit, so my problem consist of I need to obtain the value of a text field associated with the first form from the second form.
my source code is the next:
<form action="control.php" method="post">
<center>
<font color="#FF0000" face="Verdana, Arial, Helvetica, sans-serif" size="12">
<strong>Example 1</strong>
</font>
</center>
<br>
<table width="64%" height="50" border="1" bordercolor="#FFFFFF" bgcolor="#006699">
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">FIELD1</font></td>
<td width="55%">
<input name="field1" type="text">
</td>
</tr>
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">Compuesto</font></td>
<td width="55%">
<textarea name="composicion" rows="10" cols="50" accesskey="" tabindex=""></textarea>
</td>
</tr>
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">Options</font></td>
<td width="55%">
<select name="menu1">
<option value="1" label="option1" disabled selected>Option 1</option>
<option value="2" label="option2" disabled selected>Option 2</option>
<option value="3" label="option3" disabled selected>Option 3</option>
</select>
</td>
<td width="44%">
<input type="submit" name="Aceptar" value="Componer">
</td>
</tr>
</form>
<form action="definicion.htm" method="post" enctype="mimetype" target=" " title="comando totalmente definido">
<tr>
<td width="44%">
<input type="submit" name="Aceptar" value="completado">
</td>
</tr>
</form>
</table>
Could you show me how is possible to do this thing?
thanks in advance.
I need help in order to solve a problem. The problem is:
I have two forms in the same php page, each of this forms contains several text fields and one submit, so my problem consist of I need to obtain the value of a text field associated with the first form from the second form.
my source code is the next:
<form action="control.php" method="post">
<center>
<font color="#FF0000" face="Verdana, Arial, Helvetica, sans-serif" size="12">
<strong>Example 1</strong>
</font>
</center>
<br>
<table width="64%" height="50" border="1" bordercolor="#FFFFFF" bgcolor="#006699">
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">FIELD1</font></td>
<td width="55%">
<input name="field1" type="text">
</td>
</tr>
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">Compuesto</font></td>
<td width="55%">
<textarea name="composicion" rows="10" cols="50" accesskey="" tabindex=""></textarea>
</td>
</tr>
<tr>
<td width="44%" height="100%"><font color="#FFFFFF">Options</font></td>
<td width="55%">
<select name="menu1">
<option value="1" label="option1" disabled selected>Option 1</option>
<option value="2" label="option2" disabled selected>Option 2</option>
<option value="3" label="option3" disabled selected>Option 3</option>
</select>
</td>
<td width="44%">
<input type="submit" name="Aceptar" value="Componer">
</td>
</tr>
</form>
<form action="definicion.htm" method="post" enctype="mimetype" target=" " title="comando totalmente definido">
<tr>
<td width="44%">
<input type="submit" name="Aceptar" value="completado">
</td>
</tr>
</form>
</table>
Could you show me how is possible to do this thing?
thanks in advance.