Jump to content

Will PHP ALWAYS substitute the value of a variable?


Flying Sagittarius

Recommended Posts

I'm making a small RPG.  One of my early hurdles is this code; it won't substitute a value in for the variable, it ignores it.

<?php
$_POST["name"] = $name;
$_POST["command"] = $command;
$_POST["target"] = $target;
$str = $name.' used '.$command.' on '.$target.'!';
?>

 

any way to make it work?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.