Jump to content

[SOLVED] Extra Character being added to output


spec36

Recommended Posts

I am building a login script to help myself learn php. I currently have the script posting any registration form errors to the registration page. I am trying to make sure whatever the user has typed into the form will redisplay once they receive the error to prevent them from having to fill out the registration form again. I got it working, but there is an extra character "/" after what was entered by the user.

 

Here is an example:

 

Note: "1234" has been entered into username field on  reg form.

 

<tr><td>Username: </td><td><input size="20" type="text" name="username" 
<?php
if ($_POST){ echo "value ="  . $_POST['username']  ;}?>
/></td></tr>

 

I get this output

 

1234/

 

I do not know where the "/" is coming from. It should only be putting "1234" back into the username field. Any help would be great.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.