RE: [PHP] I give - Whats wrong
Could it be the lack of $? It should be $retrn =. "$VariableName\=$VariableValue"; I do that all the time. The syntax is so close to javascript that when I'm typing I often leave out the dollar sign. Especially when I have php and javascript in the same file. On Wednesday, January 24, 2001 4:35 PM, Karl J. Stubsjoen [SMTP:[EMAIL PROTECTED]] wrote: > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have a look. This function reconstructs the > querystring values passed in the querystring: > > function PassOnGetVars() { > global $HTTP_GET_VARS; > #initialize retrn value > $retrn = "?"; > > #loop through each Get Var > reset ($HTTP_GET_VARS); > while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) > { > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; > } > > #return the value > return($retrn); > } > > I've tried both versions of =. and .= (struggling to remember which is > correct. But this isn't the error, I get the same error regardles of the .= > The error I get is line 60 (which is) > > retrn .= "$VariableName=$VariableValue"; > > Thanks! Karl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Re: [PHP] I give - Whats wrong
Freak'n Duhh! My eyes are still blury to PHP *obviously*. Thanks! So $QUERY_STRING eh? I'll look that one up. Karl - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 4:31 PM Subject: Re: [PHP] I give - Whats wrong > You could of course just check $QUERY_STRING > > As for your error, you a missing a $ in front of retrn at the beginning of > that line. > > -Rasmus > > On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: > > > I've tried and tried to figure out what is wrong with this function, but I > > can't. Could you please have a look. This function reconstructs the > > querystring values passed in the querystring: > > > > function PassOnGetVars() { > > global $HTTP_GET_VARS; > > #initialize retrn value > > $retrn = "?"; > > > > #loop through each Get Var > > reset ($HTTP_GET_VARS); > > while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) > > { > > retrn =. "$VariableName\=$VariableValue"; > > retrn =. "&"; > > } > > > > #return the value > > return($retrn); > > } > > > > I've tried both versions of =. and .= (struggling to remember which is > > correct. But this isn't the error, I get the same error regardles of the .= > > The error I get is line 60 (which is) > > > > retrn .= "$VariableName=$VariableValue"; > > > > Thanks! Karl > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I give - Whats wrong
Karl, it's .= (read the fine manual ;-) ) > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; Variables in PHP need a $dollarsign. Money makes the world go round Chris Send reply to: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Date sent: Wed, 24 Jan 2001 16:34:41 -0700 Subject:[PHP] I give - Whats wrong > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have a look. This function reconstructs the > querystring values passed in the querystring: > > function PassOnGetVars() { > global $HTTP_GET_VARS; > #initialize retrn value > $retrn = "?"; > > #loop through each Get Var > reset ($HTTP_GET_VARS); > while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) > { > } > > #return the value > return($retrn); > } > > I've tried both versions of =. and .= (struggling to remember which is > correct. But this isn't the error, I get the same error regardles of the .= > The error I get is line 60 (which is) > > retrn .= "$VariableName=$VariableValue"; > > Thanks! Karl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I give - Whats wrong
You could of course just check $QUERY_STRING As for your error, you a missing a $ in front of retrn at the beginning of that line. -Rasmus On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have a look. This function reconstructs the > querystring values passed in the querystring: > > function PassOnGetVars() { > global $HTTP_GET_VARS; > #initialize retrn value > $retrn = "?"; > > #loop through each Get Var > reset ($HTTP_GET_VARS); > while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) > { > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; > } > > #return the value > return($retrn); > } > > I've tried both versions of =. and .= (struggling to remember which is > correct. But this isn't the error, I get the same error regardles of the .= > The error I get is line 60 (which is) > > retrn .= "$VariableName=$VariableValue"; > > Thanks! Karl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I give - Whats wrong
I don't think you need the \=, just the = should do. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: > Date: Wed, 24 Jan 2001 16:34:41 -0700 > From: Karl J. Stubsjoen <[EMAIL PROTECTED]> > To: PHP Mailing List <[EMAIL PROTECTED]> > Subject: [PHP] I give - Whats wrong > > I've tried and tried to figure out what is wrong with this function, but I > can't. Could you please have a look. This function reconstructs the > querystring values passed in the querystring: > > function PassOnGetVars() { > global $HTTP_GET_VARS; > #initialize retrn value > $retrn = "?"; > > #loop through each Get Var > reset ($HTTP_GET_VARS); > while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) > { > retrn =. "$VariableName\=$VariableValue"; > retrn =. "&"; > } > > #return the value > return($retrn); > } > > I've tried both versions of =. and .= (struggling to remember which is > correct. But this isn't the error, I get the same error regardles of the .= > The error I get is line 60 (which is) > > retrn .= "$VariableName=$VariableValue"; > > Thanks! Karl > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] I give - Whats wrong
I've tried and tried to figure out what is wrong with this function, but I can't. Could you please have a look. This function reconstructs the querystring values passed in the querystring: function PassOnGetVars() { global $HTTP_GET_VARS; #initialize retrn value $retrn = "?"; #loop through each Get Var reset ($HTTP_GET_VARS); while (list($VariableName, $VariableValue) = each ($HTTP_GET_VARS)) { retrn =. "$VariableName\=$VariableValue"; retrn =. "&"; } #return the value return($retrn); } I've tried both versions of =. and .= (struggling to remember which is correct. But this isn't the error, I get the same error regardles of the .= The error I get is line 60 (which is) retrn .= "$VariableName=$VariableValue"; Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]