Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Ashley Sheridan
On Thu, 2010-03-11 at 17:34 -0700, George Langley wrote: > Hi again. Thanks for all the info! > Not sure I'd agree that GET should just "assume" it was URLencoded, but > hey - who am I to argue? :-{)] > As mentioned, this is eventually buried into a Joomla! site's login > func

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread George Langley
Hi again. Thanks for all the info! Not sure I'd agree that GET should just "assume" it was URLencoded, but hey - who am I to argue?  :-{)] As mentioned, this is eventually buried into a Joomla! site's login functions (displays any errors). So not sure I'd have access to th

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Daniel Egeberg
On Thu, Mar 11, 2010 at 23:16, Daniel Egeberg wrote: > On Thu, Mar 11, 2010 at 22:57, George Langley wrote: >>        Hi all. Is there an issue with $_GET not handling a Base64-encoded >> value correctly? (PHP is 5.1.6) >>        Am receiving a Base64-encoded value: >> >> theurl.com/index.php?me

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Daniel Egeberg
On Thu, Mar 11, 2010 at 22:57, George Langley wrote: >        Hi all. Is there an issue with $_GET not handling a Base64-encoded > value correctly? (PHP is 5.1.6) >        Am receiving a Base64-encoded value: > > theurl.com/index.php?message=x > >  and retrieving it with $_GET: > > echo $_GET

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Adam Richardson
On Thu, Mar 11, 2010 at 4:57 PM, George Langley wrote: >Hi all. Is there an issue with $_GET not handling a Base64-encoded > value correctly? (PHP is 5.1.6) >Am receiving a Base64-encoded value: > > theurl.com/index.php?message=x > > and retrieving it with $_GET: > > echo $_GE

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Ashley Sheridan
On Thu, 2010-03-11 at 14:57 -0700, George Langley wrote: > Hi all. Is there an issue with $_GET not handling a Base64-encoded > value correctly? (PHP is 5.1.6) > Am receiving a Base64-encoded value: > > theurl.com/index.php?message=x > > and retrieving it with $_GET: > > echo

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Michael Shadle
On Thu, Mar 11, 2010 at 1:57 PM, George Langley wrote: > x is a Japanese phrase, that has been encoded into Base64. So is using > the + symbol: > > ...OODq+OCou... > > but my $_GET is replacing the + with a space: > > ...OODq OCou... > > thus the base64_decode() is failing (displays diamonds

[PHP] $_GET is Mangling Base64 value

2010-03-11 Thread George Langley
Hi all. Is there an issue with $_GET not handling a Base64-encoded value correctly? (PHP is 5.1.6) Am receiving a Base64-encoded value: theurl.com/index.php?message=x  and retrieving it with $_GET: echo $_GET["message"]; x is a Japanese phrase, that has been encoded int

Re: [PHP] $_GET

2009-04-14 Thread Jan G.B.
2009/4/12 Ron Piggott : > > At the very start of my index.php I have the following lines of code: > > foreach($_GET as $key => $val) { > $$key = $_GET[$val]; > echo $_GET[$val] . ""; > } > > What I don't understand is why the output is > > > Well, this would happen if you open /page.php?var= tha

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread haliphax
On Tue, Apr 14, 2009 at 8:40 AM, Paul M Foster wrote: > On Tue, Apr 14, 2009 at 07:58:24AM +0100, Ashley Sheridan wrote: > > > >> I've done a bit of research into that, and can't find any evidence to >> suggest that the so-called "friendly URL's" are actually of any benefit >> to search engines.

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Paul M Foster
On Tue, Apr 14, 2009 at 07:58:24AM +0100, Ashley Sheridan wrote: > I've done a bit of research into that, and can't find any evidence to > suggest that the so-called "friendly URL's" are actually of any benefit > to search engines. Just put a question into Google, and more often than > not, the

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Nick Cooper
$_REQUEST is not any less secure then $_POST/$_GET/$_COOKIE, they all contain raw user data. The way $_REQUEST is being used in this example is not less secure then using $_GET. It does open up an exploit but this is not because $_REQUEST is less secure. The same exploit exists with $_GET, I could

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread דניאל דנון
$_REQUEST is "less secure" because it also contains cookie data. If you manage just to set a cookie, with the name "act" and value "logout", the user will infinitely log out - You get the point. On Sun, Apr 12, 2009 at 10:56 PM, Jason Pruim wrote: > > On Apr 12, 2009, at 1:48 PM, Ron Piggott wr

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Michael A. Peters
Ashley Sheridan wrote: On Mon, 2009-04-13 at 15:47 -0700, Michael A. Peters wrote: I think doing it that way also has search engine indexing advantages. I've done a bit of research into that, and can't find any evidence to suggest that the so-called "friendly URL's" are actually of any bene

Re: [PHP] $_GET verses $_POST

2009-04-13 Thread Ashley Sheridan
On Mon, 2009-04-13 at 15:47 -0700, Michael A. Peters wrote: > Daevid Vincent wrote: > > Just to clarify. Obfuscation is NOT a substitute for security. While I don't > > disagree with the "when's" here of GET vs POST, this statement is a bit > > misleading... > > > > Any cracker worth his salt can

Re: [PHP] $_GET verses $_POST

2009-04-13 Thread Tom Worster
On 4/13/09 6:47 PM, "Michael A. Peters" wrote: > For me the biggest advantage of post is the URLs aren't ugly. > For cases where get with a variable in the URL is useful (IE > product=BluePhone) - I prefer to handle that via mod_rewrite. > > The requests get handled by generic.php and generic.ph

Re: [PHP] $_GET verses $_POST

2009-04-13 Thread Tom Worster
On 4/12/09 10:23 AM, "Ron Piggott" wrote: > How do I know when to use $_GET verses $_POST? i use GET when i want the user to be able to email the link to someone, mention it on a blog or bookmark it and it will always yield the same page. i use POST if submitting the form causes any change in t

Re: [PHP] $_GET verses $_POST

2009-04-13 Thread Michael A. Peters
Daevid Vincent wrote: Just to clarify. Obfuscation is NOT a substitute for security. While I don't disagree with the "when's" here of GET vs POST, this statement is a bit misleading... Any cracker worth his salt can easily install any number of Firefox extensions or unix command line tools and

RE: [PHP] $_GET verses $_POST

2009-04-13 Thread Daevid Vincent
ide/3.html Daevid. http://daevid.com -Original Message- From: Jason Pruim [mailto:ja...@jasonpruim.com] Sent: Sunday, April 12, 2009 12:57 PM Subject: Re: [PHP] $_GET verses $_POST POST does not display anything in the browser, so as others have said it's perf

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Michael A. Peters
Jason Pruim wrote: On Apr 12, 2009, at 1:48 PM, Ron Piggott wrote: Thanks. I got my script updated. Ron There are a few other thing's that I didn't see mentioned... The best description of when to use what, is this.. Use POST when you are submitting a form for storing info, using GET wh

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Jason Pruim
On Apr 12, 2009, at 1:48 PM, Ron Piggott wrote: Thanks. I got my script updated. Ron There are a few other thing's that I didn't see mentioned... The best description of when to use what, is this.. Use POST when you are submitting a form for storing info, using GET when you are retrie

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Phpster
There are no real security issues with the $_REQUEST object. What needs to be taken into consideration is that the order that the PHP engine gathers data from the system ( GPCS ) and the potential issues having cookies or session data named the same as the actual data you are trying to acce

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Ron Piggott
Thanks. I got my script updated. Ron On Sun, 2009-04-12 at 22:33 +0600, 9el wrote: > > > > One thing you should know is that when you use $_GET, you'll > be sending a little information about the particular page to > the browser and therefore it would be dis

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread 9el
> One thing you should know is that when you use $_GET, you'll be sending a > little information about the particular page to the browser and therefore it > would be displayed in the address bar so for example if you're using get on > a login page, you'll be showing user id and passwrod in the addr

RE: [PHP] $_GET verses $_POST

2009-04-12 Thread abdulazeez alugo
> From: ron@actsministries.org > To: php-general@lists.php.net > Date: Sun, 12 Apr 2009 10:23:01 -0400 > Subject: [PHP] $_GET verses $_POST > > How do I know when to use $_GET verses $_POST? > > Is there a pre defined variable that does both? > > Ron

[PHP] $_GET verses $_POST

2009-04-12 Thread Ron Piggott
How do I know when to use $_GET verses $_POST? Is there a pre defined variable that does both? Ron

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Phpster
$_GET when the form uses get or parameters are passed via the querystring $_POST when the form method is post $_REQUEST does both Bastien Sent from my iPod On Apr 12, 2009, at 10:23, Ron Piggott wrote: How do I know when to use $_GET verses $_POST? Is there a pre defined variable tha

Re: [PHP] $_GET

2009-04-11 Thread Mark Kelly
Hi. On Sunday 12 April 2009, Ron Piggott wrote: > At the very start of my index.php I have the following lines of code: > > foreach($_GET as $key => $val) { > $$key = $_GET[$val]; > echo $_GET[$val] . ""; > } Try: echo $_GET[$key] . ""; HTH Mark -- PHP General Mailing List (http://www.php.ne

[PHP] $_GET

2009-04-11 Thread Ron Piggott
I am moving my web site to a new host this weekend. I am working towards making the code compatible to the structure of the new server. I am getting a weird response which I don't understand At the very start of my index.php I have the following lines of code: foreach($_GET as $key => $val) { $

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
Andrés Robinet schreef: -Original Message- ... $name = 'mylist[myindex]'; this is almost an invite to moan about how http_build_query() was 'fixed' in 5.1.3 to escape square brackets ... which makes php nolonger do one of the coolest, imho, with regard to incoming GET/POST values -

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 8:34 PM > To: Andrés Robinet > Cc: php-general@lists.php.net > Subject: Re: [PHP] $_GET and multiple spaces. > > Andrés Robinet schreef: > >> -Origina

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
Andrés Robinet schreef: -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 7:08 PM To: Andrés Robinet Cc: php-general@lists.php.net Subject: RE: [PHP] $_GET and multiple spaces. On Mon, January 14, 2008 1:33 pm, Andrés Robinet wrote

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 7:08 PM > To: Andrés Robinet > Cc: php-general@lists.php.net > Subject: RE: [PHP] $_GET and multiple spaces. > > On Mon, January 14, 2008 1:33 pm, Andrés Robinet w

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
On Mon, January 14, 2008 1:33 pm, Andrés Robinet wrote: >> -Original Message- >> From: Richard Lynch [mailto:[EMAIL PROTECTED] >> Sent: Monday, January 14, 2008 2:11 PM >> To: Jochem Maas >> Cc: clive; Churchill, Craig; php-general@lists.php.net >> S

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Churchill, Craig
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 15 January 2008 6:33 AM > To: php-general@lists.php.net > Subject: RE: [PHP] $_GET and multiple spaces. > Like this? > > $url = > htmlspecialchars('whatever.php?'.

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Andrés Robinet
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Monday, January 14, 2008 2:11 PM > To: Jochem Maas > Cc: clive; Churchill, Craig; php-general@lists.php.net > Subject: Re: [PHP] $_GET and multiple spaces. > > On Mon, January 14, 2008 3:

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
On Mon, January 14, 2008 3:17 am, Jochem Maas wrote: > I think actually the whole url should be urlencoded as a matter of > course, not > 100% sure about this (and it's way to early on a monday to bother > checking up ;-) ... > maybe someone else can chime in? Actually, after you urlencode() the v

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Richard Lynch
On Sun, January 13, 2008 6:04 pm, Churchill, Craig wrote: > One of the values I'm passing in a URL string contains multiple > spaces. > > ... > (The multiple spaces are between Argononemertes and australiensis) *ALL* data passed by URL to GET should be urlencoded: http://php.net/urlencode urlenco

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
thanks, Nisse, for clearing up my half-baked-monday-morning answer. AFAICT (now that I have woken up somewhat) you are indeed correct. Nisse Engström schreef: On Mon, 14 Jan 2008 10:17:03 +0100, Jochem Maas wrote: clive schreef: Hi - What Al said, but you want to use the url_encode/url_decode

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Nisse Engström
On Mon, 14 Jan 2008 10:17:03 +0100, Jochem Maas wrote: > clive schreef: >> Hi - What Al said, but you want to use the url_encode/url_decode >> functions in php > > you don't need to use url_decode() because php will do that automatically > for incoming data - the caveat being situations where do

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Jochem Maas
clive schreef: Hi - What Al said, but you want to use the url_encode/url_decode functions in php you don't need to use url_decode() because php will do that automatically for incoming data - the caveat being situations where double urlencoding is being used (anyone playing with multiple redirec

Re: [PHP] $_GET and multiple spaces.

2008-01-14 Thread clive
Hi - What Al said, but you want to use the url_encode/url_decode functions in php Clive Churchill, Craig wrote: Hello, One of the values I'm passing in a URL string contains multiple spaces. ... (The multiple spaces are between Argononemertes and australiensis) However when I retrieve the v

[PHP] $_GET and multiple spaces.

2008-01-13 Thread Churchill, Craig
Hello, One of the values I'm passing in a URL string contains multiple spaces. ... (The multiple spaces are between Argononemertes and australiensis) However when I retrieve the value using $_GET[DarScientificName] there is only a single space between the two names which I understand is the int

Re: [PHP] $_GET strings seperation

2007-05-26 Thread Tijnema
On 5/26/07, Navid Yar <[EMAIL PROTECTED]> wrote: Hello Everyone, I have a problem with GET strings. I use $_SERVER["REDIRECT_QUERY_STRING"] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps appending itself to the string continuously everytime someone clic

[PHP] $_GET strings seperation

2007-05-26 Thread Navid Yar
Hello Everyone, I have a problem with GET strings. I use $_SERVER["REDIRECT_QUERY_STRING"] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps appending itself to the string continuously everytime someone clicks on a different category link on the website. Fo

Re: [PHP] _GET('name') truncates

2007-02-06 Thread Richard Lynch
On Tue, February 6, 2007 4:01 pm, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-02-05 18:09:21 -0600: >> GET args can be truncated at some number, if the server does not >> want >> to allow longer args. I believe the minimum compliant limit is 1024 >> bytes. I may well have been remembering

Re: [PHP] _GET('name') truncates

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 18:09:21 -0600: > GET args can be truncated at some number, if the server does not want > to allow longer args. I believe the minimum compliant limit is 1024 > bytes. Since you asked for a reference in the other post: HTTP/1.1 tries to be as general as possible, a

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 2:36 pm, Oscar Gosdinski wrote: > When you send GET all the parameters are sent in the HTTP header and > this header has a limited length. If you want to send large parameters > in a form you have to use POST which send this data on the HTTP body > and it has no limit. Las

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 2:11 pm, [EMAIL PROTECTED] wrote: > If you're really intent on setting up a PHP powered web page to test > SQL statements, I might recommend using a web form either using input > type=text or textarea form elements and a POST method instead of GET. I belive the minimum com

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Richard Lynch
GET args can be truncated at some number, if the server does not want to allow longer args. I believe the minimum compliant limit is 1024 bytes. You also REALLY ought to be using http://php.net/urlencode on the GET args. And if you are spitting that URL out to a browser, you should then use http

Re: [PHP] _GET('name') truncates

2007-02-05 Thread tedd
At 3:11 PM -0500 2/5/07, <[EMAIL PROTECTED]> wrote: That seems to be cutting off around 900 characters. That's a lot to put into a URL. That figure varies. I did some testing on one of my servers and the cut off was somewhere around 7000 characters. However, I don't recommend the practice.

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Oscar Gosdinski
When you send GET all the parameters are sent in the HTTP header and this header has a limited length. If you want to send large parameters in a form you have to use POST which send this data on the HTTP body and it has no limit. On 2/5/07, Ramon <[EMAIL PROTECTED]> wrote: Hi all, I've written

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Jürgen Wind
Ramon-15 wrote: > > Hi all, > > I've written a php script, called test.php, consisting of the following > statements: > > error_reporting(E_ALL); > $query = $_GET['sql']; > echo $query; > ?> > Using the script with 'small' values for the parameter sql works fine. > Although, using the scri

Re: [PHP] _GET('name') truncates

2007-02-05 Thread tg-php
I'll let everyone else do the "why the hell are you doing this? security blah blah! bad practice blah blah!" type stuff.. I'm sure there will be plenty. One reason this may be happening is, depending on your browser, there's a limit to the number of characters you can have in a URL. That seem

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Stut
Ramon wrote: I've written a php script, called test.php, consisting of the following statements: Using the script with 'small' values for the parameter sql works fine. Although, using the script with the sql query as specified below I do not understand why the value of the sql parameter is

[PHP] _GET('name') truncates

2007-02-05 Thread Ramon
Hi all, I've written a php script, called test.php, consisting of the following statements: Using the script with 'small' values for the parameter sql works fine. Although, using the script with the sql query as specified below http://localhost/test.php?sql="SELECT orders_id, customers_id, c

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Coder > > http://www.ouradoptionblog.com > Join our journey of adoption > > http://www.thelonecoder.com > [EMAIL PROTECTED] > > continuing the struggle against bad code > > */ > ?> > > > > From: Unknown Unknown <[EMAIL PROTECTED]> > > Date: Fri, 25 Nov 2005 17:38:02 -0500 > > To: Richard Davey <[EMAIL PROTECTED]> > > Cc: > > Subject: Re: [PHP] $_GET and $_POST arrays not working > > > > > > >

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Stephen Johnson
hard Davey <[EMAIL PROTECTED]> > Cc: > Subject: Re: [PHP] $_GET and $_POST arrays not working > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi Unknown, Friday, November 25, 2005, 10:38:02 PM, you wrote: > Well it returned all values with print_r(); but i can't access > them... this is what the page returns: Post your code, there's an error in it if the $_POST etc arrays are populated, but you can't access them. Cheers, Rich -- Ze

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Well it returned all values with print_r(); but i can't access them... this is what the page returns: Array ( [Username] => SFF [Password] => dSF [EMail] => sfdf ) Array ( ) *Notice*: Undefined index: Username in * D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *5* *Notice*: Undefine

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi, Friday, November 25, 2005, 10:22:46 PM, you wrote: > Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET > and $_POST arrays do not seem to be working, I am Sure I am spelling > them right, but i keep getting the errors: > Is this a problem with configuration or is there a bug

[PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Unknown Unknown
Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET and $_POST arrays do not seem to be working, I am Sure I am spelling them right, but i keep getting the errors: ** *Notice*: Undefined index: Username in * D:\Apache\Apache(re)\Apache2\htdocs\RegisterP.php* on line *3* *Notice*: Un

Re: [PHP] updated php $_GET

2005-02-13 Thread Bostjan Skufca @ domenca.com
$_GET[section] is slower than $_GET['section'], and quite significantly! B. On Saturday 12 February 2005 14:16, Jacco Ermers wrote: > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Jacco Ermers wrote: > >> Hello everyone, > >> > >> I recently installed p

Re: [PHP] updated php $_GET

2005-02-12 Thread Jacco Ermers
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jacco Ermers wrote: >> Hello everyone, >> >> I recently installed php5 onto my windows IIS. Previous I had php running >> on Apache. I coded a page (testing purposes) but now I get errors. the >> page can be viewed

Re: [PHP] updated php $_GET

2005-02-12 Thread Marek Kilimajer
Jacco Ermers wrote: Hello everyone, I recently installed php5 onto my windows IIS. Previous I had php running on Apache. I coded a page (testing purposes) but now I get errors. the page can be viewed on a remote server (without the errors) http://seabird.jmtech.ca Locally I receive these errors:

[PHP] updated php $_GET

2005-02-12 Thread Jacco Ermers
Hello everyone, I recently installed php5 onto my windows IIS. Previous I had php running on Apache. I coded a page (testing purposes) but now I get errors. the page can be viewed on a remote server (without the errors) http://seabird.jmtech.ca Locally I receive these errors: Undefined index:

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Curt Zirzow
* Thus wrote Bostjan Skufca @ domenca.com: > Hello, > > If I create form like this > > > ... > Now what I am interested in is if this is valid behaviour regarding HTTP > specification and if other platforms support this interference of GET and > POST variables in request? Well the acti

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 10:26:05 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > There are many scripts I write which provide results for either GET or > POST data interchangably, so that links or forms can be used in the other > pages to fit in with their look/feel. When I need to come in bo

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > If your question is a matter of "Is this a good programming practice" then > I think it's ok. There are times when something like this could be really > useful. There are many scripts I write which provide results for either GET or POST data interchangably, so that link

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread tg-php
omes > from GET or POST, it should be way less effort to copy one array to another > or have a lookup function to return the given value. > > / Lars > > - Original Message - > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> > To: > Sent

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
r have a lookup function to return the given value. > > / Lars > > - Original Message - > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, January 11, 2005 5:42 PM > Subject: [PHP] $_GET & $_POST

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Lars B. Jensen
function to return the given value. / Lars - Original Message - From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 11, 2005 5:42 PM Subject: [PHP] $_GET & $_POST simultaneously Hello, If I create form like this ... both arrays

[PHP] $_GET & $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
Hello, If I create form like this ... both arrays contain appropriate variables when submitted: ::: $_GET ::: Array ( [a] => b ) ::: $_POST ::: Array ( [action] => modify ... ) Now what I am interested in is if this is valid behaviour regarding HTTP specification

RE: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: 11 March 2004 14:19 > > On Thursday 11 March 2004 21:15, I.A. Gray wrote: > > > What I want the > > script to do is set $SPORDER to this value. If > $_GET['ORDER'] is not > > set then it gets the default valu

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Neil Freeman
How about this - untested by the way: $order = "ASC"; if (isset($_GET["ORDER"])) { $value = $_GET["ORDER"]; if (($value == "ASC") || ($value == "DESC")) { $order = $value; } else if ($value == "RAND") { $order = "RAND

Re: [PHP] $_GET, expressions and conditional statements

2004-03-11 Thread Jason Wong
On Thursday 11 March 2004 21:15, I.A. Gray wrote: > I know this is probably really simple, but I am not very good at > expressions and conditional statements. I am wanting to show a list from a > MYSQL database. I am using the URL to store the variables that control the > output. The variable $

[PHP] $_GET, expressions and conditional statements

2004-03-11 Thread I.A. Gray
Hi everyone, I know this is probably really simple, but I am not very good at expressions and conditional statements. I am wanting to show a list from a MYSQL database. I am using the URL to store the variables that control the output. The variable $ORDER can be set to ASC (Ascending), DESC (De

Re: [PHP] $_GET String Edit

2003-11-22 Thread Chris Shiflett
--- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > Sorry for the confusing initial request. You were correct in assuming > that I am generating URLs like: > > page.php?foo1=bar1&foo2=bar2&foo1=bar3&foo2=bar4 > > So I suppose the consise follow-up question is how can I get a > hyperlink to change o

Re: [PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
Sorry for the confusing initial request. You were correct in assuming that I am generating URLs like: page.php?foo1=bar1&foo2=bar2&foo1=bar3&foo2=bar4 So I suppose the consise follow-up question is how can I get a hyperlink to change one of those varibles in the string. In the past I have just ta

Re: [PHP] $_GET String Edit

2003-11-22 Thread Chris Shiflett
--- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > I am trying to make a page navigation menu (we have all seen them, > "Page: 1 2 3..."), and I would like to continue doing this via the > URL variables. Right now, each of the page numbers is a hyper link > is set like this: > > "page.php?".$_SERV

[PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
Hey - this one should be simple. I am parsing some data and have $_GET variables in the URL stipulating on which record to start and how many records to display (these then get basses to the limit command in my database query). So here is the catch. I am trying to make a page navigation menu (we

Re: [PHP] _GET arguments question

2003-11-11 Thread Chris Shiflett
--- Duncan <[EMAIL PROTECTED]> wrote: > The only problem is that if there are no arguments in the URL already I > get the following: > http://localhost/dir_to_my_script/test.php?&arg1=1&arg2=2 > notice the "?&" bit. Rather than trying to see whether this might work on most browser, you should try

[PHP] _GET arguments question

2003-11-11 Thread Duncan
Hi, just a quick question: I'm writing a script, where arguments get added to a dynamicaly created URL. The only problem is that if there are no arguments in the URL already I get the following: http://localhost/dir_to_my_script/test.php?&arg1=1&arg2=2 notice the "?&" bit. I'm just curious, since

RE: [PHP] _GET question

2003-08-01 Thread Chris W. Parker
Pushpinder Singh Garcha on Friday, August 01, 2003 11:11 AM said: > action="full_profile_1.php?val=$company"> Use a hidden form element instead. > Can some one tell me if the action parameter of the form is correct ? > Since in the first part of the if() stateme

[PHP] _GET question

2003-08-01 Thread Pushpinder Singh Garcha
Hello All, My application has a search / query feature where in the user selects the search criteria and is displayed a page containing the reults. The user must also be allowed to edit these results and save them later on. On the results page I use the following logic, // // START OF P

RE: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
lt. But I'm open to how to make the code better.. ideas?.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 7:17 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED]

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread John W. Holmes
Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Marek Kilimajer
If your table column is named Eval #, you need to use backtick quotes: `Eval #` Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title

RE: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
Nope.. Still does not work.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Nicholas Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:53 PM To: Ow Mun Heng; [EMAIL PROTECTED] Subject: Re: [PHP] $_GET[

Re: [PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Nicholas Robinson
What happens if you use a non-breaking html space instead? I.e Eval # HTH Nick On Monday 28 Jul 2003 9:06 am, Ow Mun Heng wrote: > Hi, > > I have this problem, which could easily be solved through a name > change but I would like to learn more. > > There's a table set up from a MySQL query

[PHP] $_GET['sort'] & argument separator

2003-07-28 Thread Ow Mun Heng
Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16 This is my f

Re: [PHP] $_GET space in index changed to underscore

2003-01-24 Thread Marek Kilimajer
You can use $_SERVER['QUERY_STRING'] Per wrote: 1lt John W. Holmes wrote: Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll als

Re: [PHP] $_GET space in index changed to underscore

2003-01-24 Thread Per
1lt John W. Holmes wrote: Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll also convert any periods in a form element name to an un

Re: [PHP] $_GET space in index changed to underscore

2003-01-23 Thread 1LT John W. Holmes
> Anyone who knows why get variables whit spaces in looking like this in > the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in > $_GET['aa_bb'] instead of $_GET['aa bb']? That's just what PHP does. It'll also convert any periods in a form element name to an underscore. Otherwise, i

RE: [PHP] $_GET space in index changed to underscore

2003-01-23 Thread Jon Haworth
Hi Per, > Anyone who knows why get variables whit spaces in looking like this in > the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in > $_GET['aa_bb'] instead of $_GET['aa bb']? I don't think spaces are legal in variable names - PHP's probably just trying to recover from the dod

[PHP] $_GET space in index changed to underscore

2003-01-23 Thread Per
Hi Anyone who knows why get variables whit spaces in looking like this in the URL blah.php?aa+bb=1 is changed to aa_bb in $_GET resulting in $_GET['aa_bb'] instead of $_GET['aa bb']? /P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php