If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Obviously you realise that the following would give the same result but I'm assuming there is more to the problem that you have said, so I posted the more flexible solution.
Code:
echo '$PHP_SELF' | sed 's/\$PHP_SELF/$_POST["PHP_SELF"]/'