[PHP] Query string question

2009-01-13 Thread Jônatas Zechim
I have something like this on my site: mysite.com/índex.php?msg=Transa%25E7%25E3o+n%25E3o+autorizada i need to convert Transa%25E7%25E3o+n%25E3o+autorizada to Transação não autorizada. The letters ç ã, and others (é, í, ...). Someone can help me? -Mensagem original- De: Eric

Re: [PHP] Query string question

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 17:21 -0200, Jônatas Zechim wrote: I have something like this on my site: mysite.com/índex.php?msg=Transa%25E7%25E3o+n%25E3o+autorizada i need to convert Transa%25E7%25E3o+n%25E3o+autorizada to Transação não autorizada. The letters ç ã, and others (é, í, ...).

[PHP] Query string vanishes on header(Location: ...) redirect

2009-01-12 Thread Richard S. Crawford
I'm trying to redirect my users to a URL which includes a query string: $the_url = $CFG-wwwroot./DLC/includes/L1_accept_required.php?cid=.$course-id; //die (URL = $the_url); header('Location: '. $the_url); When I uncomment the die() command, the URL shows properly, e.g.:

[PHP] Query string inconsistency

2003-03-12 Thread Alley Kat Design
Hi - I have a PHP msg board on one domain, and a site on another, the idea is that the board is framed. The PHP msg board pages detect whether they're in the frameset, and if not, pass their URL query string over to the frameset. The frameset then grabs this and writes a frame src tag, thus

[PHP] Query string???

2002-11-18 Thread Cyclone Médias
Hi! I need to solve this problem: I have a menu bar on my main page and a dynamic zone on the others levels of my html/php site. When I am clicking the 'item 1' on my menu, I want to load item1.php3 in the dynamic section of the next page. So I think I have to use sometinng like get variable

Re: [PHP] Query string???

2002-11-18 Thread Justin French
So, the link might look like: a href=page.php?item=1item 1/a Then page.php might look like this: ? include({$item}.php); ? BUT this would be smarter: ? // uncomment this next line if you have register_globals OFF // $item = $_GET['item']; if(empty($item)) { // set a default item

Re: [PHP] Query string???

2002-11-18 Thread Marek Kilimajer
instead of if(empty($item)) { ... I would recomend if(is_numeric($item)) { ... Justin French wrote: So, the link might look like: a href=page.php?item=1item 1/a Then page.php might look like this: ? include({$item}.php); ? BUT this would be smarter: ? // uncomment this next line if you

Re: [PHP] Query string???

2002-11-18 Thread Justin French
on 19/11/02 12:31 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: instead of if(empty($item)) { ... I would recomend if(is_numeric($item)) { ... very true -- thanks for picking that up! Justin French http://Indent.com.au Web Developent Graphic Design

[PHP] Query String...

2002-07-01 Thread Tim Nields
Never have encountered this. When I include a query string on the URL line I can not access the variables. For example: www.tim.com?action=move I should be able to access the variable action. However I am currently not able to do this. I am not receiving an error of any kind, but nothing is

Re: [PHP] Query String...

2002-07-01 Thread Jason Wong
On Tuesday 02 July 2002 04:45, Tim Nields wrote: Never have encountered this. When I include a query string on the URL line I can not access the variables. For example: www.tim.com?action=move I should be able to access the variable action. However I am currently not able to do this. I

RE: [PHP] Query String...

2002-07-01 Thread Dan Vande More
In the beginning of your page try: $action=$_GET[action]; echo $action; -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Query String... On Tuesday 02 July 2002 04:45, Tim Nields wrote: Never

Re: [PHP] Query String...

2002-07-01 Thread Nields Timothy M
Thank you very much... Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tuesday 02 July 2002 04:45, Tim Nields wrote: Never have encountered this. When I include a query string on the URL line I can not access the variables. For example:

Re: [PHP] Query String...

2002-07-01 Thread Chris Hewitt
Tim, $action = $_GET[action]; should do it. I assume you have register_globals off (as it is by default nowadays). HTH Chris Tim Nields wrote: Never have encountered this. When I include a query string on the URL line I can not access the variables. For example: www.tim.com?action=move I

[PHP] QUERY STRING question

2002-03-11 Thread jhj hjhjhj
Hey again list, Anybody know what the diffrance in using %20 and + as a space in the query string is? Josepablo Pérez _ Do You Yahoo!? La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx -- PHP General

Re: [PHP] QUERY STRING question

2002-03-11 Thread Hiroshi Ayukawa
I guess they are almost same. But, the contents of $QUERY_STRING are different. Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] query string

2001-10-30 Thread Richard Baskett
Ok I am pulling my hair out! Why if I pass error=5 through a query string like index.htm?error=5 and then echo it, it's correct, but when I do error=25 it echos 2T and when I do error=500 it echos 5TP? What the heck is going on here? I pass strings easy enough and I cant remember ever having

Re: [PHP] query string

2001-10-30 Thread Frewuill Rodriguez
this helps - Original Message - From: Richard Baskett [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 9:02 AM Subject: [PHP] query string Ok I am pulling my hair out! Why if I pass error=5 through a query string like index.htm?error=5 and then echo

[PHP] query string - count for records with keywords

2001-09-08 Thread sgibbs
I'm trying to get a count of the number of records in a database that have the keyword cat, for example. Below is the original code; I added the query with count at the bottom of this code but it doesn't seem to be working. I just get a return of 4 which doesn't correspond correctly with the

[PHP] Query String Name ?

2001-07-26 Thread A
Hi there, is there any way to access two variables in a query string that have the same name e.g test.php?name=joename=bob Is there any way to extract both values of name without changing the way the query string is created? Thanks, Abe

Re: [PHP] Query String Name ?

2001-07-26 Thread Daniel Rezny
Hello, Thursday, July 26, 2001, 12:14:39 PM, you wrote: A Hi there, A is there any way to access two variables in a query string that have the same name e.g A test.php?name=joename=bob A Is there any way to extract both values of name without changing the way the query string is created?

Re: [PHP] Query String Name ?

2001-07-26 Thread Brian White
In PHP, if you set the input fields to be array names then all the results get put in an array: So: test.php?name[]=joename[]=bob would create an array(joe, bob ) in PHP. If you really can't set it in the form you could access the QUERY_STRING environment variable and parse it directly. At