Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 12-26-2008, 12:54 PM   #1
Beta Member
Join Date: Dec 2008
Posts: 1
Default Siple for programmer error unexpected T_STRING

Can someone please spot my error here Ive compared it to my other stuff just like it and Im not seeing the problem. Line 14 is

$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];

Big thanks in advance

Parse error: syntax error, unexpected T_STRING in /public_html/php/Freq_Table_dml.php on line 14


$Channel = $HTTP_POST_VARS["Channel"];
$Frequency MHz = $HTTP_POST_VARS["Frequency MHz"];
$MHZ Range = $HTTP_POST_VARS["MHZ Range"];
$Type = $HTTP_POST_VARS["Type"];
$Color = $HTTP_POST_VARS["Color"];
$License = $HTTP_POST_VARS["License"];
$Comment = $HTTP_POST_VARS["Comment"];

nicolemcgrgr50 is offline   Reply With Quote
Old 12-29-2008, 11:07 AM   #2
In Runtime
Daeva's Avatar
Join Date: Dec 2005
Posts: 407
Send a message via AIM to Daeva Send a message via MSN to Daeva Send a message via Yahoo to Daeva
Default Re: Siple for programmer error unexpected T_STRING

Some additional information would be helpful.
1.) What version of php
2.) What is MHz

On lines 14 and 15 it appears as though your variable declarations are incorrect.

I do not understand the necessity of MHz.
You can try this:
$Frequency = $HTTP_POST_VARS["Frequency MHz"];
$Range = $HTTP_POST_VARS["MHZ Range"];
If you are trying to instantiate a class (that you created), then the proper declaration in php looks like this:
$objectName = new nameOfClass(arg1,arg2,etc...);
I can help you further if you can give me a little bit more background on what you're trying to accomplish. Hope this helps.
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier.
Edit = Best feature ever
Daeva is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 04:20 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0