Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.