hi Jason The TEXT variable is $catname and the $rubriqueid is a mistake it is actually $catid but it is not that giving the problem. It is an error from my part when I posted it.
My html looks ok. I should tell you though that this page is on the admin section which is under a login session script I use, which was recommended by some one on the forum. The script is in the include folder and the file is called access.php and I include this file in every Php files found in the admin folder. So if I have to think of using the session for my problem in passing the variables, can I use session_register("$catid") in the forum page to register and start new session or should I include it in the login script where there is already password, userid and the user name registered. Is it possible to start a new session for these two form pages and register the variables, will it co-habit with the existing session? I am pretty confused with session; I've checked the Php manual and couldn't really get the gist of it. Thanks for any help in advance. gd "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sunday 16 February 2003 03:37, Geckodeep wrote: > > 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. > > Which is the TEXT variable that you're referring to? And where does > $rubriqueid come from? > > [snip] > > > 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> > > Have you looked at the HTML source to see whether it looks OK? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > ------------------------------------------ > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > ------------------------------------------ > /* > I don't have any solution but I certainly admire the problem. > -- Ashleigh Brilliant > */ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php