Hello, I have developed a PHP register page. However when i click on one of the text area to fill in the details, the form automatically resets itself. Can anyone help me out. Here is the code of that part.

# <tr>
#                         <td width="25%">Web site URL</td>
#                         <td height="10"><input name="url" type="text" class="textbox" id="url" size="45" alt="blank" emsg="please enter website url" value="<?=$_SESSION['url']?>"></td>
#                       </tr>

I'm pretty sure emsg is not a standard attribute for input tags, if emsg is from a Javascript library you might want to look into that as the culprit. The input field itself has no properties other than that emsg field that could cause anything to "reset"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.