SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you add a no return action on a submit button

    Does anyone know how to prevet the function of the return button within a form???

    Example I am creating a profile search page and at present if they select the options they are looking for then press the submit button it returns the matches.
    However if someone selects the options they want but instead of pressing the submit button they press return it pulls up the entire database....

    Any ideas ????

  2. #2
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Somewhere in your script I assume you have: if($submit) {
    Say in your form you have a field called 'users' then I suggest you change the if statement to:

    if($users) {

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2001
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanx I will try that


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •