#23310 [Opn->Bgs]: Variables are not being passed

From: Date: Wed, 23 Apr 2003 01:50:18 +0000
Subject: #23310 [Opn->Bgs]: Variables are not being passed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38103@lists.php.net to get a copy of this message
ID: 23310 Updated by: rasmus@php.net Reported By: jason at ezitsolutions dot com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: W2K PHP Version: 4.3.2RC1 New Comment: <?php ("result.php?team=team1"); ?> Is complete nonsense and could never have worked under any circumstance, CGI or otherwise. In your other examples you are missing $ in front of your variable declarations. This looks like you simply don't understand what you are doing and need some help. The bug system is not the place for it. Please ask your questions on the php-general mailing list. Previous Comments: ------------------------------------------------------------------------ [2003-04-22 20:40:23] jason at ezitsolutions dot com oh, yeah - maybe I am using the wrong verbage... like this: <?php ("result.php?team=team1"); ?> I am aware the PHP behaves differently under IIS than under APACHE. Again, this worked in CGI mode, but not in ISAPI mode. So now I have to do this: <?php team = "team1"; include ("result.php"); ?> This works. The problem is that if I do it again on the same page like this: <?php team = "team2"; include ("result.php"); ?> It never picks up team2. So I can only declare that variable one time on the page. Any ideas? ------------------------------------------------------------------------ [2003-04-22 20:32:12] rasmus@php.net What do you mean by includes? Server-side includes? I have no idea how those work under IIS. ------------------------------------------------------------------------ [2003-04-22 20:29:28] jason at ezitsolutions dot com For my use, I want to get the latest scores for a team. So I have a script that gets those depending on the variable I pass. for example. I would do 10 includes on the home page like this: result.php?team=team1 result.php?team=team2 result.php?team=team3 result.php?team=team4 This worked in CGI mode. It stopped working in ISAPI mode. Is this incorrect usage? ------------------------------------------------------------------------ [2003-04-22 20:12:21] rasmus@php.net Variables on the end of an include? As in: include 'file.php?a=1&b=2'; Hopefully that's not what you are doing because that is completely bogus. You don't pass variables to included files, you simply set them before the include and access them directly in the included file. ------------------------------------------------------------------------ [2003-04-22 19:47:07] jason at ezitsolutions dot com I am using formmail.php with no special config. W2K, IIS 5, PHP in ISAPI mode. 1)When I put a url with variables on the end in the address bar I have no problem, but when the variables are on the end of a url in an include they are not getting processed. 2) Variables in forms are not getting passed either. Try this form to see what I mean: (no order will be processed, you can put in bogus info) http://www.atlantasilverbacks.com/game/season_ticket_order_form2.php Any suggestions??? Also, register_globals is on. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23310&edit=1

« previous php.bugs (#38103) next »