I have these forms with one having pull down menu having data coming from a
table which is working and I have set two variables one for ID and the other
for the TEXT.
The problem that I am facing is that when the form is submitted the ID
variable is well taken into consideration and can see the value on the
process page which is then inserted into the table. The TEXT variable which
I set apparently for some reason it wouldn't show up.

I've tried using the hidden field option, still it wouldn't show. The funny
thing is the variable ID is getting through but not the variable TEXT.

Another thing is My forms are split into 3 part the first part Form is
submitted to a form process page that contains two other forms which works
in turn(when the second form submits the third form shows up), the forms are
all working fine but I wish to collect the results of successive form
validation to show the results to the user.

The technique I've adapted is to set each result to different variables and
pass these variables as hidden field even that is not working.
Forms are all validating well as I can see the results through the  upoaded
files on the server.
Can any one look into my code an see what's wrong with it?

Her is the part of the code from the first Form submit page
<form name="article" method="post" enctype="multipart/form-data"
action="../form_pro.php">
<select name="catid">
<option value="">Please choose your category</option>
<?php // Fetching the name of the category and id
while ($row = mysql_fetch_array($result_cat)){
 $catid = $row["cat_id"];
 $catname = $row["cat_text"];
 echo("<option value='$rubriqueid'>$catname</option>\n");
}
?>
</select>
html code....

<input name="hidden" type="hidden" value="$autid">
<input name="hidden" type="hidden" value="$catname">
<input name="hidden" type="hidden" value="$catid">
<td colspan="4"><input  name="submit1" type="submit"  value="Send">

code on the Form process page

<p>Catagory <?php echo($catname); ?></p>

Thanks in advance.
GD



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to