Re: Question:maybe urldecode

From: Date: Fri, 10 Dec 2004 20:52:35 +0000
Subject: Re: Question:maybe urldecode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-203962@lists.php.net to get a copy of this message
--- Jason Wong <php-general@gremlins.biz> wrote: > > Nothing is printing out on $_POST['var'] or $var > > s makes sense. > > Now why are you looking in $_POST for your form > values? They're in $_GET. You > said earlier that you understood POST and GET? I made the correction , using $_GET now. Values are printing out, aside from the select lists (arrays) which print out as "array". Now I can get the correct values into the text fields, so they are working, but the drop downs and the select lists are not. I'm not sure, if I need to parse the (Server(QueryString) or implode the arrays ?This is the big question for me. Here is all the relevant code. Perhaps someone can see what it is I'm doing wrong: ?> <?php $queryString = ($_SERVER['QUERY_STRING']); $Ind = $_GET['Ind']; $State = $_GET['State']; $TType = $_GET['TType']; $JTitle = $_GET['JTitle']; $City = $_GET['City']; $Days = $_GET['Days']; ?> <form name="form1" id="form1" method="get" action="<?=$PHP_SELF?>" select name="Ind[]" size="8" multiple="multiple" id="Ind[]" > <?php while($row = mysql_fetch_array($inds, MYSQL_BOTH)) { echo '<option value="'.$row['CareerIDs'].'">'.$row['CareerCategories'].'</option>'; <select name="State[]" size="8" multiple="multiple" id="State[]"> <?php while($row = mysql_fetch_array($stas, MYSQL_BOTH)) { echo '<option value="'.$row['StateID'].'">'.$row['States'].'</option> <select name="TType[]" size="8" multiple="multiple" id="TType[]"> <?php while($row = mysql_fetch_array($terms, MYSQL_BOTH)) { echo '<option value="'.$row['TaxTermID'].'">'.$row['TaxTerm'].'</option>'; <input name="JTitle" type="text" id="JTitle" value="<?php echo $JTitle ?>"> <input name="City" type="text" id="City" value="<?php echo $City ?>"> <select name="Days" id="Days" > <option value="">Please Select</option> <?php while($row = mysql_fetch_array($days, MYSQL_BOTH)) { echo '<option value="'.$row['DaysID'].'">'.$row['Days'].'</option>';

« previous php.general (#203962) next »