Can you help the following code is generating this error:
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE
or '$' in C:\FoxServ\www\phakt\list.php on line 11
this is line 11:
<?php
$rsEmployees__MMColParam1 = "%";
if (isset(HTTP_POST_VARS["name"])) {
$rsEmployees__MMColParam1 = HTTP_POST_VARS["name"];
}
?>
I'm using phakt 1.5.1 with ultradev 4 using php4.2.2 as part foxserv
3 on win2k.
If you know of a way around this error I would apreciate the help.
(And before anyone say's visit the phakt forum I have but no answer as yet)
Thanks in advance
Dai
parse error, unexpected T_STRING, expecting T_VARIABLE
Moderator: General Moderators
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
change
to
Code: Select all
$rsEmployees__MMColParam1 = HTTP_POST_VARSї"name"];Code: Select all
$rsEmployees__MMColParam1 = $_POSTї'name'];If you have PHP4.1+ use $_POST if not use $HTTP_POST_VARShob_goblin wrote:change
toCode: Select all
$rsEmployees__MMColParam1 = $HTTP_POST_VARSї"name"];
Code: Select all
$rsEmployees__MMColParam1 = $_POSTї'name'];