hello,

when I

echo $acfile;

it shows up with the users name.

when i try to insert the variable into the text field, the below code will show the value as blank.

$HTML .= '  <input type="text" value="' . $acfile . '"   id="contest-name" name="contest[name]" value="' .
        ( isset( $entry['name'] ) ? str_format( $entry['name'] ) : '' ) .
        '" />' . "\n";

Any help would be greatly appreciated.
Thank you

A bit more code would help. Where do you echo it? Maybe it gets changed somewhere in the process?

contest[name]

the index should be enclosed in quotes:

contest['name']

and enclosed in curly braces if used in a double quoted string:

...id="contest-name" name="{contest['name']}" value="' ...
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.