#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    3
    Rep Power
    0
    I have a problem with forms and php.

    I read information from MySql into $name.
    If $name contains "John Doe", the first expression print "John Doe", while the second expresseion gives me a text field containing "John". WHY????

    <?print urldecode($navn);?>

    <input name="name" value= <? print $name;?>>

    regards Morten Thorsen
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    Did you urlencode() before passing it?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    3
    Rep Power
    0
    No

    The urldecode is not suppose to be there. Sorry.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    3
    Rep Power
    0
    I found out my self...

    <input name="name" value=" <? print $name;?>" >

    sorry

Similar Threads

  1. HELP Editing database through HTML form
    By kashaf in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 11:17 AM
  2. Replies: 9
    Last Post: January 29th, 2004, 07:33 AM
  3. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 01:40 PM
  4. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 10:57 AM
  5. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 08:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo