php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23310 Variables are not being passed
Submitted: 2003-04-22 19:47 UTC Modified: 2003-04-22 22:54 UTC
From: jason at ezitsolutions dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.2RC1 OS: W2K
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jason at ezitsolutions dot com
New email:
PHP Version: OS:

 

 [2003-04-22 19:47 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-22 20:12 UTC] 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 20:29 UTC] 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:32 UTC] 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:40 UTC] 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:50 UTC] rasmus@php.net
<?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.
 [2003-04-22 21:04 UTC] jason at ezitsolutions dot com
thanks for the typo, in my script I do have the $.  I just forgot to put it in my comments for the bug database.  sorry.  And also, it is not complete nonsense.  I have been doing it for over a year and it worked fine until I switched to ISAPI mode.  I have searched everywhere and found that many people have the same problems and thought it might be a bug.
 [2003-04-22 21:10 UTC] rasmus@php.net
Are you really trying to tell me that

<?php ("result.php?team=team1"); ?>

has done something useful for you in any way whatsoever?  If so, then you know something nobody else does because that line really makes no sense at all.  Please also point me to your reference of many other people using the same syntax.
 [2003-04-22 21:18 UTC] jason at ezitsolutions dot com
yes it really did work before.  i don't know why you are making me sound like i'm crazy.  it works on server side includes with .shtml extension and it did work as a server side include with .php ext. until I switched to ISAPI.
 [2003-04-22 21:49 UTC] rasmus@php.net
Because this tag, which you keep saying works, makes no sense:

<?php ("result.php?team=team1"); ?>

The PHP parser has no idea what to with this.  Putting a filename inside brackets is meaningless.  There is no command there.  So if this somehow worked before, then it is something other than PHP that made it work, and if it has now stopped working, then it is this something other than PHP that has broken on you.
 [2003-04-22 22:02 UTC] jason at ezitsolutions dot com
alright, I will concede to my first problem and find a way around it.  Do you have any input on the 2nd problem I had?  It looks like no variables are being passed, including HTTP headers.  try this link to see what I mean:
http://www.atlantasilverbacks.com/game/season_ticket_order_form2.php
Again, this worked in CGI mode but will not work in ISAPI mode.
 [2003-04-22 22:54 UTC] rasmus@php.net
Like I said, this is not a support forum.  This is for reporting genuine bugs.  Please use the support mailing lists and provide them with a concise example, your expected output and the actual output and they can help you work through the problems.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC