php-windows Digest 8 Aug 2003 19:00:20 -0000 Issue 1860 Topics (messages 21069 through 21086):
Re: [PHP] Still can't pass variable through url 21069 by: Martin Towell 21070 by: John Manko Re: Still can't pass variable through url 21071 by: Svensson, B.A.T. (HKG) 21072 by: Aidal 21073 by: Svensson, B.A.T. (HKG) 21074 by: Aidal 21075 by: Svensson, B.A.T. (HKG) 21081 by: Aidal 21082 by: Svensson, B.A.T. (HKG) not able to pass values to OR access global values by the include d file 21076 by: Krishna Murali-A19032 21077 by: Svensson, B.A.T. (HKG) 21079 by: Mikey mcrypt's blowfish encryption 21078 by: PHPDiscuss - php Newsgroups and mailing lists Functions in included files cannot be called 21080 by: Krishna Murali-A19032 21083 by: DvDmanDT Absolute and Relative directory 21084 by: Michael Bao 21085 by: skate selecting data from file with php 21086 by: Idur Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
--- Begin Message ---See if changing it to page.php?year=$year&month=$month works The separator between the page and the query string is "?" The separator between each key/value pair is just "&" -----Original Message----- From: Jack [mailto:[EMAIL PROTECTED] Sent: Friday, 8 August 2003 4:30 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Still can't pass variable through url Dear all I had set the "register_global=on" and "magic_quotes_runtime=off" already, but when i click my hyperlink "page.php?year=$year&?month=$month", it doesn't pass the variable for ?year and ?month to the destination page "page.php" I'm using php 5.0 above , if the same case apply to php4.04, then there is no problem at all! Can anyone please give me more help on this? Thx alot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ Information from NOD32 1.468 (20030725) __________ This message was checked by NOD32 for Exchange e-mail monitor. http://www.nod32.com
--- End Message ---
--- Begin Message --- actually, you might want to urlencode it.
ok, so i doubt that you would need url encoding for $year and $month, but I'm sure you will playing with more of this in the future, so you should properly prepare to do so. Note: browsers will do formatting for you, but don't rely on it.
"page.php?year=" . urlencode($year) . "&month=" . urlencode($month)
Martin Towell wrote:
See if changing it to page.php?year=$year&month=$month works
The separator between the page and the query string is "?" The separator between each key/value pair is just "&"
-----Original Message----- From: Jack [mailto:[EMAIL PROTECTED] Sent: Friday, 8 August 2003 4:30 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Still can't pass variable through url
Dear all I had set the "register_global=on" and "magic_quotes_runtime=off" already, but when i click my hyperlink "page.php?year=$year&?month=$month", it doesn't pass the variable for ?year and ?month to the destination page "page.php" I'm using php 5.0 above , if the same case apply to php4.04, then there is no problem at all! Can anyone please give me more help on this?
Thx alot Jack
--- End Message ---
--- Begin Message ---[...] > when i click my hyperlink "page.php?year=$year&?month=$month", it [...] > if the same case apply to php4.04, then there is > no problem at all! It's rather a mysterium why it worked at all. How did you manage to get this working on php4.04? (It should not work!)
--- End Message ---
--- Begin Message ---You can only use '?' once and that's between the pagename and the first variable, after that it's only '&'. Like this: page.php?var1=value1&var2=value2&var3=value3 etc. /Aidal "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > > when i click my hyperlink "page.php?year=$year&?month=$month", it > [...] > > if the same case apply to php4.04, then there is > > no problem at all! > > It's rather a mysterium why it worked at all. How did you > manage to get this working on php4.04? (It should not work!)
--- End Message ---
--- Begin Message ---I knew that, that's why I think it a mysterium. -----Original Message----- From: Aidal To: [EMAIL PROTECTED] Sent: 8-8-03 9:06 Subject: Re: [PHP-WIN] Still can't pass variable through url You can only use '?' once and that's between the pagename and the first variable, after that it's only '&'. Like this: page.php?var1=value1&var2=value2&var3=value3 etc. /Aidal "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > > when i click my hyperlink "page.php?year=$year&?month=$month", it > [...] > > if the same case apply to php4.04, then there is > > no problem at all! > > It's rather a mysterium why it worked at all. How did you > manage to get this working on php4.04? (It should not work!) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---Hmm as far as I can see you have used both '&?' in your example below. Have you checked what your POST,GET etc. setting are? "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > > when i click my hyperlink "page.php?year=$year&?month=$month", it > [...] > > if the same case apply to php4.04, then there is > > no problem at all! > > It's rather a mysterium why it worked at all. How did you > manage to get this working on php4.04? (It should not work!)
--- End Message ---
--- Begin Message ---As far as I can see you are not able to read and understand a written and indented text. > -----Original Message----- > From: Aidal [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 9:36 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Still can't pass variable through url > > > Hmm as far as I can see you have used both '&?' in your example below. > > Have you checked what your POST,GET etc. setting are? > > "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > [...] > > > when i click my hyperlink "page.php?year=$year&?month=$month", it > > [...] > > > if the same case apply to php4.04, then there is > > > no problem at all! > > > > It's rather a mysterium why it worked at all. How did you > > manage to get this working on php4.04? (It should not work!) > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
--- End Message ---
--- Begin Message ---Hmm fine, "page.php?year=$year --> &? <-- month=$month" seems to have &? right beside eachother but what do I know. Anyway I'm not gonne post regarding this from now on, I'm trying to help, not asking for somone to be rude to me, so figure it out yourself. "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As far as I can see you are not able to read > and understand a written and indented text. > > > > -----Original Message----- > > From: Aidal [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 08, 2003 9:36 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] Still can't pass variable through url > > > > > > Hmm as far as I can see you have used both '&?' in your example below. > > > > Have you checked what your POST,GET etc. setting are? > > > > "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > [...] > > > > when i click my hyperlink "page.php?year=$year&?month=$month", it > > > [...] > > > > if the same case apply to php4.04, then there is > > > > no problem at all! > > > > > > It's rather a mysterium why it worked at all. How did you > > > manage to get this working on php4.04? (It should not work!) > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >
--- End Message ---
--- Begin Message ---I am an not a pedagogue, but an engineer, and today my very limit pedagogic skill I have has failed (again): MY POINT IS: You do not still after a couple of remarks realizes that I am NOT the original author of the question!?! Thus I never ask anything. I just made a remark on another users who claimed a piece of code would work with php 4.04, which seams not possible in my point of view and knowledge about HTML. Thanx, but no thanx, for trying helping out, but I don't actually need help to solve "my" problem, since the only problem I have is to understand how the original author was able to make the code work. If you have any suggestion on how this might be possible this I am glad to hear ur opinion, but please don't try to help me with an imaginary problem which I don't have. Secondly the fault has already been pointed out by another person so if you had care to follow the thread from the beginning you would had not needed to waste your own time on a problem already solved. //Anders > -----Original Message----- > From: Aidal [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 1:01 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Still can't pass variable through url > > > Hmm fine, "page.php?year=$year --> &? <-- month=$month" seems to have &? > right beside eachother but what do I know. > Anyway I'm not gonne post regarding this from now on, I'm trying to help, > not asking for somone to be rude to me, so figure it out yourself. > > > "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > As far as I can see you are not able to read > > and understand a written and indented text. > > > > > > > -----Original Message----- > > > From: Aidal [mailto:[EMAIL PROTECTED] > > > Sent: Friday, August 08, 2003 9:36 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [PHP-WIN] Still can't pass variable through url > > > > > > > > > Hmm as far as I can see you have used both '&?' in your example below. > > > > > > Have you checked what your POST,GET etc. setting are? > > > > > > "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > > > [...] > > > > > when i click my hyperlink "page.php?year=$year&?month=$month", it > > > > [...] > > > > > if the same case apply to php4.04, then there is > > > > > no problem at all! > > > > > > > > It's rather a mysterium why it worked at all. How did you > > > > manage to get this working on php4.04? (It should not work!) > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
--- End Message ---
--- Begin Message --- Title: Blank
when i include php files i would like to pass values to the included file like
include("file.php?action=""
I am not able to do this. I have tried setting cookies and try to acces the cookies from file.php. It didn't work.
Can anyone suggest me a way out of this?
Thanks
MuraliS. Murali Krishna
Software Engineer
Software Technology Group (SofTec)
Mission Statement : To be the BEST in ALL the roles that I play.
--- End Message ---
--- Begin Message ---Isn't include a preprocessing action? -----Original Message----- From: Krishna Murali-A19032 [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] not able to pass values to OR access global values by the included file when i include php files i would like to pass values to the included file like include("file.php?action=1"); I am not able to do this. I have tried setting cookies and try to acces the cookies from file.php. It didn't work. Can anyone suggest me a way out of this? Thanks Murali S. Murali Krishna Software Engineer Software Technology Group (SofTec) Mission Statement : To be the BEST in ALL the roles that I play.
--- End Message ---
--- Begin Message ---Wouldn't it be easier to do: $action = 1; include ("file.php"); HTH, Mikey -----Original Message----- From: Krishna Murali-A19032 [mailto:[EMAIL PROTECTED] Sent: 08 August 2003 10:23 To: [EMAIL PROTECTED] Subject: [PHP-WIN] not able to pass values to OR access global values by the included file when i include php files i would like to pass values to the included file like include("file.php?action=1"); I am not able to do this. I have tried setting cookies and try to acces the cookies from file.php. It didn't work. Can anyone suggest me a way out of this? Thanks Murali S. Murali Krishna Software Engineer Software Technology Group (SofTec) Mission Statement : To be the BEST in ALL the roles that I play.
--- End Message ---
--- Begin Message ---I was wondering anyone had heard any issues regarding mcrypt and Blowfish encryption?? I presently have a system with a server implemented in php using mcrypt-2.4.x and clients who interact with it sending and receiving blowfish encrypted data. I am unable to touch the clients but want to convert the server to .NET. However I am not getting the same results and I am pretty sure my .NET components are correct. Any help would be greatly appreciated. Cheers, Steve.
--- End Message ---
--- Begin Message ---If index.php includes top1.php, there cannot be any calls to funstions defined in top1.php from index.php Please let me know where I went wrong /////index.php <?php include("http://localhost/dss-tee/top1.php"); setHeader('title'); ?> //////top1.php <?php function setHeader($siteTitle){ echo $siteTitle; return true; } ?> > -----Original Message----- > From: Mikey [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 3:48 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] not able to pass values to OR access global > values by the included file > > > Wouldn't it be easier to do: > > $action = 1; > include ("file.php"); > > HTH, > > Mikey > -----Original Message----- > From: Krishna Murali-A19032 [mailto:[EMAIL PROTECTED] > Sent: 08 August 2003 10:23 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] not able to pass values to OR access > global values by the > included file > > > when i include php files i would like to pass values to the > included file > like > > include("file.php?action=1"); > > I am not able to do this. I have tried setting cookies and > try to acces the > cookies from file.php. It didn't work. > > Can anyone suggest me a way out of this? > > Thanks > Murali > S. Murali Krishna > Software Engineer > Software Technology Group (SofTec) > Mission Statement : To be the BEST in ALL the roles that I play. > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
--- End Message ---
--- Begin Message ---That you are supposed to include "top1.php" WITHOUT "http://www.whatever.com/" as that is what screws up... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Krishna Murali-A19032" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > If index.php includes top1.php, there cannot be any calls to funstions defined in top1.php from index.php > Please let me know where I went wrong > > /////index.php > > <?php > include("http://localhost/dss-tee/top1.php"); > setHeader('title'); > ?> > > //////top1.php > > <?php > function setHeader($siteTitle){ > echo $siteTitle; > return true; > } > ?> > > -----Original Message----- > > From: Mikey [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 08, 2003 3:48 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] not able to pass values to OR access global > > values by the included file > > > > > > Wouldn't it be easier to do: > > > > $action = 1; > > include ("file.php"); > > > > HTH, > > > > Mikey > > -----Original Message----- > > From: Krishna Murali-A19032 [mailto:[EMAIL PROTECTED] > > Sent: 08 August 2003 10:23 > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] not able to pass values to OR access > > global values by the > > included file > > > > > > when i include php files i would like to pass values to the > > included file > > like > > > > include("file.php?action=1"); > > > > I am not able to do this. I have tried setting cookies and > > try to acces the > > cookies from file.php. It didn't work. > > > > Can anyone suggest me a way out of this? > > > > Thanks > > Murali > > S. Murali Krishna > > Software Engineer > > Software Technology Group (SofTec) > > Mission Statement : To be the BEST in ALL the roles that I play. > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >
--- End Message ---
--- Begin Message ---Hello everyone, When I included some file, I must key in the absolute directory, as following: require ("d:/iis/www3/lib/common/auth.inc"); but I need relative directory, like require ("/lib/common/auth.inc"); So I change include_path line to "include_path = d:/iis/www3/" in "php.ini" file. But it doesn't work.Please tell me the reason. thank you, Michael Bao
--- End Message ---
--- Begin Message ---> > but I need relative directory, like require ("/lib/common/auth.inc"); > try loosing the first / "lib/common/auth.inc";
--- End Message ---
--- Begin Message ---hi there,.... i have file address.txt, it's content of address of customer, like this ; name age city jony 27 new york george 25 dallas mony 23 mexico edward 30 new york budy 22 dallas dennise 21 new york hox to count the field of city, so the result is, like this city count dallas 2 new york 3 mexico 1 so i know how many user from a specific city, for the information i am not using mysql. Is that to difficult to do it with out mysql...?? Did php have the function to do selecting data like mysql....??? thanx --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
--- End Message ---