SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i made a script

    <script language="javascript">

    function check()
    {
    category=document.form1.category.value;
    title=document.form1.title.value;
    text=document.form1.text.value;

    if(category&&title&&text)
    {
    document.form1.submit();
    }
    else
    {
    alert("All fields except the image are required.");
    }
    }
    </script>
    ..
    .
    ..
    <input type=submit ... onClick="check();">

    The alert message occurs if i missed any of the fields but when i press ok on the alert message the processing goes on and the file php is being executed, what is going on? How will stop the form processing?

  2. #27
    SitePoint Enthusiast
    Join Date
    Dec 2002
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .....I TOLD YOU IN 3 DIFFERENT POSTS.......

    jesus...sorry, but I get annoyed when I have to repeat myself over and over and over and over.......

    read, I've said how, that other guy said how with a way that works for him, read...

    -Mark

  3. #28
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok man i fixxed my script and now works perfectly! Thanks for your help!

  4. #29
    SitePoint Guru dale_burrell's Avatar
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by jonsof
    Did you finf any solution?
    Please post the HTML from the browser view source.

    [edit] forget that I missed the fact the this thread is now 2 pages.
    Last edited by dale_burrell; Dec 18, 2002 at 03:05.
    If you aren't living life on the edge
    - you're taking up too much space
    Creative Dreaming Ltd / Ask The Local / Amanzi Travel


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
  •