Removing underscore
Posted: Fri Nov 07, 2008 9:46 am
I'm using the following script to pick up values from fields in a submitted form:
foreach($_POST as $field => $value)
{
echo "$field = $value<br>";
}
and it generates the following:
first_name = javiqq
last_name = Javiqq
So it's working, but how do I remove those underscores from "first_name" to have it say "First name" in a nicer font. Also how do I replace the assignment operator and use a colon?
foreach($_POST as $field => $value)
{
echo "$field = $value<br>";
}
and it generates the following:
first_name = javiqq
last_name = Javiqq
So it's working, but how do I remove those underscores from "first_name" to have it say "First name" in a nicer font. Also how do I replace the assignment operator and use a colon?