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?
Removing underscore
Moderator: General Moderators
Re: Removing underscore
Hi,
you can use str_replace for replacing the underscores (and replace it with " ").
you can use str_replace for replacing the underscores (and replace it with " ").
Re: Removing underscore
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.