PDA

View Full Version : Problem with Default value in text box using PHP


szms
Fri 11th Jul '03, 4:57pm
I am trying to keep a default text in a text box. But if I try to use couple of words having spase in between it just only taking the first word. I want to show the couple of words in the text box. How can I do that?

Here is my code...... I am passing the sentence through $Name
$Name = "Hello World";

But it's unly showing "Hello" in the text box.

<input type="text" name="Domain_Name[]" value = <?php print "$Name";?> size = "30">

Lats
Fri 11th Jul '03, 8:08pm
Looks like quotes in the wrong spot :)<input type="text" name="Domain_Name[]" value = "<?print $Name?>" size = "30">