1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Text after space character cut off in input text field when editing form back

Discussion in 'PHP' started by macaela, Sep 29, 2010.

  1. #1
    Hi i have this edit form that allows user to mofy data but the problems on the text box is that it deletes the rest of the data after the space from the first word i tried to increase the size of the varChars on mysql but did no work why it happens how can i stop from happening??

    this the form input
    <input type="text" name="name" id="name"  class='text_box' value="<?php echo $_GET['name'];?>"/>
    PHP:
    i also tried

    <input type="text" name="name" size="40" class='text_box' value<?php echo stripslashes(htmlspecialchars($_GET('name'))) ?>>
    PHP:
    but no sucess help please
     
    macaela, Sep 29, 2010 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    urldecode($_GET['name'])
    PHP:
     
    Last edited: Sep 29, 2010
    MyVodaFone, Sep 29, 2010 IP