Give parse_str() a go.
http://ca.php.net/manual/en/function.parse-str.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have circumstances which cause me to investigate get strings and
such, and wish to start a thread discussing such matters. This relates
to a cluster of functions iin php such as public array
HttpQueryString::toArray ( void ) and it's bretherin and sisterin and
otherin.
Being new to php,
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
StartingMonth='{$_GE
while ($row = mysql_fetch_array($selection)){
if (section == $sectionName){
echo "" . $row["sectionName"] . "";
}else{
echo $row["sectionName"];
}
thx
Not sure if I understand you 100% but I think you could just either
check the $_GET or $_REQUEST array. Something like this:
i
I'm a cold fusion refugee and am having incredible problems with something
that I think is relatively easy -- so I must be missing something basic.
I would like to pull info from a query string and use it inside a database
call
I have a navigation bar that includes data pulled from a database.
Si
query that gets the vars from modify button in addtolist.php
hope this helps clear things up...
- Original Message -
From: "Jason Paschal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 8:57 PM
Subject: Re: [PHP] query strings
> i
Do you mind giving (some of) your code?
Sunfire wrote:
still broke
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 03, 2003 7:18 PM
Subject: Re: [PHP]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
// UNTESTED
$tArr = explode('&',$QUERY_STRING);
foreach ( $tArr as $tVar )
{
$a = explode('=',$tVar);
${rawurldecode($a[0])} = rawurldecode($a[1]);
}
???
On Monday 03 March 2003 04:17 pm, Sunfire wrote:
> tried everything except ses
Are you trying to look at the query string itself? If so, spaces are
invalid in URLs, so they are urlencoded. Try using
$_GET/$HTTP_GET_VARS, or urldecode() it if you must.
Sunfire wrote:
tried everything except session vars and the query string is still broken...
no matter what i do for some
tried everything except session vars and the query string is still broken...
no matter what i do for some reason the browser wants to always put %20 in
the middle of my words (i.e. hello world as one var will come out as
hello%20world)
any other ideas
---
Outgoing mail is certified Virus Free.
i have a might i say a very very large/long query string i have to run to
pass variable values from one page to another with a button... the button
works and the query string are passing variables right but at the end of the
query string (it passes like 21 variable values) the last variable content
11 matches
Mail list logo