Re: value not passed

From: Date: Wed, 16 Jul 2003 00:11:34 +0000
Subject: Re: value not passed
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155346@lists.php.net to get a copy of this message
Joaco <joaco182@hotmail.com> wrote: > Can anyone tell me why the addDivName field is always passed as a blank... > This is killing me. > > <?php if($i <= 8) {?> > <td> > <input type="text" name="addDivName" > class="textfield"> This isnt getting submited when you press the link. > </td> > <td align="right"> > <a href="<?php print > "index.php?op=addDivision&total=".$i."&addDivName=".$addDivName; > ?>"> > <img src="<?php print SITE_DIR > ?>_img/_buttons/btn_additem.gif" > width="58" height="15" alt="" > border="0" /> > </a> The 'a href' wont pass the variable addDivName that the user has just entered in the textbox above. You'll want to change that href to something like: <input type="image" src="btn_additem.gif"> Be sure that you have set up the form earlier in the file. > </td> > <?php } ?> > > Whenever I click on the anchor everything is sent thru except the value of > addDivName? Curt --

« previous php.general (#155346) next »