can some one help me with my simple php error ?

Smithy

New member
i know this seems to simple to mess up but...

<?php
$text - 'hello world.';
?>

<input type="text" value="<?php echo $text; ?> ">
 
<?php

$text = "Hello World";

?>

<input type="text" value="<?php echo $text; ?>" />

This should work!

You asign values to variables (like $text) with equals sign in php '='
 
Back
Top