Current location: Hot Scripts Forums » Programming Languages » PHP » how to solve error "Function name must be a string"


how to solve error "Function name must be a string"

Reply
  #1 (permalink)  
Old 03-18-10, 04:08 AM
anacy_nivas's Avatar
anacy_nivas anacy_nivas is offline
Newbie Coder
 
Join Date: Sep 2008
Location: coimbatore
Posts: 47
Thanks: 11
Thanked 0 Times in 0 Posts
how to solve error "Function name must be a string"

i am having string value that comes from url.
URL like : index.php?mod=index&action=addspeakup
value of action is: addspeakup

i am getting value addspeakup from variable action.

i need to call function addspeakup. i am using following coding that displays error. please help me.


$action =$this->requestobj->getGetParameter("action");
string($$action) ();

it shows error
"Function name must be a string"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-18-10, 08:01 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
PHP: Variable functions - Manual

Possibly: $action();

Not tested
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT:: how to solve post method error on asp page in Linux & Apache Server? j14nhAo ASP 2 02-24-06 01:33 PM
how to solve this PHP error? j14nhAo PHP 1 02-16-06 08:48 AM
visual basic problem I cannot solve: data grid : need vb programmer for hire chrismonroe10 Visual Basic 1 03-25-05 07:42 PM
I have a visual basic problem I cannot solve. I need to hire someone to do this work chrismonroe10 Job Offers & Assistance 2 02-11-05 12:24 PM
Unsolved mystery - can you solve it?? blacib JavaScript 1 03-09-04 08:29 AM


All times are GMT -5. The time now is 09:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.