Hi all,
I need help in order to solve a problem. The problem is:
I have two forms in the same 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.
Could you show me a source in order to do this thing?
thanks in advance.
how obtain a test field value included in a form from other
Moderator: General Moderators
-
skull cowboy
- Forum Newbie
- Posts: 14
- Joined: Tue Jan 21, 2003 3:04 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
-
skull cowboy
- Forum Newbie
- Posts: 14
- Joined: Tue Jan 21, 2003 3:04 am
the code is here.
This is the code:
<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>
<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>