Re: got it, thanks

From: Date: Mon, 24 Jun 2002 20:52:00 +0000
Subject: Re: got it, thanks
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-20065@lists.php.net to get a copy of this message
Because it's not $s in the context of a printf() call. It is %s to denote a string replacement. -Mike ----- Original Message ----- From: "Matthew Crouch" <whyyousee@yahoo.com> To: <php-db@lists.php.net> Sent: Monday, June 24, 2002 12:41 PM Subject: [PHP-DB] got it, thanks > > > Seth Yount wrote: > > > in you print statement you have ?lastname=%s, shouldn't that be '$s' > > denoting a variable being passed? Try that out. > > > > gl -- Seth > > > > Matthew Crouch wrote: > > > > > this bit from my index page is giving me 2 headaches: > > > 1. it isn't passing anything into the URL > > > 2. the page that gets called ("name.php") sits and tries to load > > > forever. it looks like it's even filling up my hard drive with data (?!) > > > > > > Note: it does this (#2) even if I type in the URL with a variable and > > > value, like "name.php?lastname=smith" > > > > > > <? > > > printf ("<form method=\"post\" > > > action=\"name.php?lastname=%s\">", > > > $lastname); > > > ?> > > > <div align="center"> > > > <input type="Text" name="lastname" > > > size="75"> > > > <input type="Submit" name="submit" value="Search > > > for Last Name"> > > > </div> > > > </form> > > > </div> > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#20065) next »