how to fix cursor position

Discussion in 'PHP' started by hulkrana, May 9, 2007.

  1. #1
    helo frds
    i am new to php and making registration form.In this when i am validating my email id after successful validation all the previous contents checked are refreshed.please tel me how to fix my cursor all other text values there only

    thanks and regards
     

    Attached Files:

    • s13.php
      File size:
      6.6 KB
      Views:
      78
    hulkrana, May 9, 2007 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    u need to use javascript not php .

    document.xxx.yyy.focus();
     
    commandos, May 9, 2007 IP
  3. NoamBarz

    NoamBarz Active Member

    Messages:
    242
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    You have an HTML form and want to validate it, correct?

    For client side validation, use javascript.
    For server side validation, use PHP.

    The reason your page is refreshed, I think, is because the form action is set to "#" or the page name, index.php for example. At least this is what I can make of this. Could you clarify your question?
     
    NoamBarz, May 9, 2007 IP