Re: simple question, but i dunn the answer..
| From: | Philip Olson | Date: | Thu, 04 Jan 2001 00:57:56 +0000 |
| Subject: | Re: simple question, but i dunn the answer.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32586@lists.php.net to get a copy of this message | ||
Much better, especially considering variables can't begin with numbers.
silly mistakes ;-)
philip
On Wed, 3 Jan 2001, jeremy brand wrote:
> After thinking about what you are probably wanting to accomplish..
>
> This is probably what you want...
>
> $argv[0]
>
> In your example, $argv[0] will contain 14.
>
> Jeremy
>
> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
> more
> Get your own Free, Private email at http://www.smackdown.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "<body>" -- Quoted from Yahoo! homepage,
> http://www.yahoo.com
>
> On Wed, 3 Jan 2001, jeremy brand wrote:
>
> > Date: Wed, 3 Jan 2001 16:29:04 -0800 (PST)
> > From: jeremy brand <jeremy@nirvani.net>
> > To: PeterOblivion@aol.com
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] simple question, but i dunn the answer..
> >
> > you can just check:
> >
> > if (isset($14))
> > // then ?14 was there
> > else
> > // it wasn't.
> >
> > Jeremy
> >
> > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
> > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
> > for more
> > Get your own Free, Private email at
> > http://www.smackdown.com/
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > "<body>" -- Quoted from Yahoo! homepage,
> >http://www.yahoo.com
> >
> > On Wed, 3 Jan 2001 PeterOblivion@aol.com wrote:
> >
> > > Date: Wed, 3 Jan 2001 19:25:53 EST
> > > From: PeterOblivion@aol.com
> > > To: php-general@lists.php.net
> > > Subject: [PHP] simple question, but i dunn the answer..
> > >
> > > I see some sites that pass variables like..
> > > script.php?14
> > > instead of
> > > script.php?id=14
> > > anyone know how to do this?
> > >
> > >
> > > Thanks
> > > - Peter
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>