how obtain a test field value included in a form from other

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
skull cowboy
Forum Newbie
Posts: 14
Joined: Tue Jan 21, 2003 3:04 am

how obtain a test field value included in a form from other

Post by skull cowboy »

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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

What have you attempted so far? Could we see your source?

Mac
skull cowboy
Forum Newbie
Posts: 14
Joined: Tue Jan 21, 2003 3:04 am

the code is here.

Post by skull cowboy »

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>
Post Reply