Announcement

Collapse
No announcement yet.

Problem with Default value in text box using PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Default value in text box using PHP

    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">

  • #2
    Looks like quotes in the wrong spot
    PHP Code:
    <input type="text" name="Domain_Name[]" value = "<?print $Name?>" size = "30">
    Lats...

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X