[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-29-2006, 09:19 AM   #1 (permalink)
Resistance is Futile
 
Borghunter's Avatar
 
Join Date: Apr 2006
Location: Calgary, Canada
Posts: 1,092
601.80 NP$ (Donate)

Borghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to all

Wildlife
Help! A little PHP $_POST help

I am trying to use a variable in my $_POST variable like so:
PHP Code:
$addinfoout = '';
$addinfo2 = explode(',', $addinfo);
    foreach (
$addinfo2 as $addinfo3) {
        
$addinfo4 = explode('|', $addinfo3);
            
$addinfoout .= $addinfo4[3].$_POST($addinfo4[1]).'<br />';
    }
However I am getting this error:

Quote:
Fatal error: Function name must be a string in /home/.auntie/borghunter/borgweb.com/shop/order2.php on line 33
Does anyone here know how to use variables in the $_POST superglobal, any help is appreciated.

Thank You.
__________________
████ Watch FREE Domain Names Videos by Gurus ████
The Best Check Page Rank
Borghunter is offline  
Old 08-29-2006, 09:25 AM   #2 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 160
81.00 NP$ (Donate)

TwistMyArm is on a distinguished road


OK, so what exactly are you trying to do there, anyway?

It almost looks as though you're trying to access a POST parameter by the name of "whatever is in addinfo4". Is that right?

Anyway, that particular message is coming from the fact that you're using:
$_POST($addinfo4[1])

instead of:
$_POST[ $addinfo4[1] ]

Now, whether or not that's the only problem with the code, well, I don't know.
TwistMyArm is offline  
Old 08-29-2006, 09:27 AM   #3 (permalink)
NamePros Regular
 
baxter's Avatar
 
Join Date: Apr 2006
Posts: 289
1,990.00 NP$ (Donate)

baxter is a jewel in the roughbaxter is a jewel in the roughbaxter is a jewel in the rough

Ethan Allen Fund Save The Children
EDIT: TwistMyArm beat me to it
baxter is offline  
Old 08-29-2006, 09:29 AM   #4 (permalink)
Resistance is Futile
 
Borghunter's Avatar
 
Join Date: Apr 2006
Location: Calgary, Canada
Posts: 1,092
601.80 NP$ (Donate)

Borghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to allBorghunter is a name known to all

Wildlife
lol, oops, ya I just noticed that :P
O well.
__________________
████ Watch FREE Domain Names Videos by Gurus ████
The Best Check Page Rank
Borghunter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:55 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85