Unstoppable Domains โ€” AI Assistant

A little PHP $_POST help

SpaceshipSpaceship
Watch

Kadenz

Resistance is FutileEstablished Member
Impact
29
I am trying to use a variable in my $_POST variable like so:
PHP:
$addinfoout = '';
$addinfo2 = explode(',', $addinfo);
	foreach ($addinfo2 as $addinfo3) {
		$addinfo4 = explode('|', $addinfo3);
			$addinfoout .= $addinfo4[3].$_POST($addinfo4[1]).'<br />';
	}

However I am getting this error:

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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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.
 
0
•••
EDIT: TwistMyArm beat me to it :D
 
0
•••
lol, oops, ya I just noticed that :P
O well.
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back