kbai...@howlermonkey.net wrote:
> ...Holy cow... nothing to extract the query string, it's automatically
> part of the environment. So I just do work with the $_GET string, it's
> in there already... yikes.
>
>
You might find phpinfo() particularly useful as an indicator of how php is
configure
Cool. SO, now it's in a string, I can chop, slice, dice, make
gazillions of steak fries, and drive on. So, now we can munch a
webpage with a query string as a KEY to unlock access to it, and use
DIE to stop the process if it is not there, or is the correct key, so
far making sense?
Quot
kbai...@howlermonkey.net wrote:
Your turn! :-D
just in case I totally misunderstood, and you simply have the string and
want to rip out the component parts of the query string, then:
Or similar, watch out for parse_str though as it'll swap out spaces and
. for _ - which is nice.
--
PHP
kbai...@howlermonkey.net wrote:
...Holy cow... nothing to extract the query string, it's automatically
part of the environment. So I just do work with the $_GET string, it's
in there already... yikes.
yup
OK, so $_GET is an array keyed to keywords; plug in the key, out comes
the value. What
...Holy cow... nothing to extract the query string, it's automatically
part of the environment. So I just do work with the $_GET string, it's
in there already... yikes.
Quoting Nathan Rixham :
kbai...@howlermonkey.net wrote:
Your turn! :-D
$_GET
and if you do post.. (can you guess?)
kbai...@howlermonkey.net wrote:
Your turn! :-D
$_GET
and if you do post.. (can you guess?)
$_POST
usage:
http://www.foo.org/item1/delivery.php?item=name&code=DATA
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andy B wrote:
going to try some different things out... the if statement didnt work cuz
when i didnt put a query string at the end of the page name when going to it
it complained about month being an undefined index...
if(!isset($_GET['month']) || $_GET['month'] <= 0 || $_GET['month'] > 12)
--
--
>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 10, 2004 6:33 PM
Subject: [PHP] Re: query strings coming from the same page going back to the
same page
> Andy B schrieb:
> > was wondering if this would work or do i need different code:
> > > include("libs/conf.db"
Andy B schrieb:
was wondering if this would work or do i need different code:
12)){
$query="SELECT
Type,
StartDate,
EndDate,
Name,
County,
Notes
FROM $EventsTable
ORDER BY StartDate DESC";
} else {
$query="SELECT
Type,
StartDate,
EndDate,
Name,
County,
Notes
FROM $EventsTable WHERE
Star
So when you do request for:
your_script.php?var=hello%20world
And put this in your script
you get
hello%20world
printed?
"Sunfire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> tried everything except session vars and the query string is still
broken...
> no matter what i do for
Spaces usually get converted to %20 when passed around in urls... take a
look at the urldecode() and parse_str() functions...
http://www.php.net/manual/en/function.urldecode.php
http://www.php.net/manual/en/function.parse-str.php
On Mon, 3 Mar 2003, Sunfire wrote:
> i have a might i say a very v
11 matches
Mail list logo