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

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

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'];?>"/>

Of course that wont work as its not valid HTML, it needs to have double quotes around the value

<input type="text" name="name" size="40" class='text_box'  value="<?php echo stripslashes(htmlspecialchars($row["name"]));  ?>" />

But from what i see there should be no reason for it not to work

i tried like this but it doesnt show anything at all

<input type=“text” name=“name” size=“40” class=‘text_box’ value<?php print stripslashes(htmlspecialchars($row[“name”])) ?>>

What happens if you just echo out the output before the input field? Also does the data you need to show in the input field get saved fully into the MySQL database?

variable name comes from _GET ?

u try to :


echo $_GET['name'];exit;

and put example please for " not correct " name.

yeah it saved on the database and yeah echo before because before i have a list which echo all the entire table on the database and show the full name but then when i click edit it cuts off the rest of the other words and and i have to input again and sumbit again why does it do that how can i stop it from doing that??