Close

Results 1 to 6 of 6
  1. #1
    DF MaSter whoyou's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    81
    Thanks
    0
    Thanked:        0
    Karma Level
    255

    Default Pop Up Message Help

    I have created a simple website for a company with an enquiry form. I have 2 pop up messages when the form is submitted. One is to inform the person their quote will be with them within 24 hours and the second is if the information is incomplete. How do I get the message to inform the person that their quote will be with them within 24 hours to arrive as the second message?

    www.bangkokairporttransfers.com

  2. #2
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default Re: Pop Up Message Help

    nothing on your link!!


    and do you mean an JavaScript alert as a popup message? or do you mean a pop up window?
    Languages: DotNet, C/C++, VB, PHP, Perl, COBOL (ewww), Pascal, ......
    Databases: SQLServer, Oracle, Ingres, Access, .......
    General geek....

  3. #3
    DF MaSter whoyou's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    81
    Thanks
    0
    Thanked:        0
    Karma Level
    255

    Default Re: Pop Up Message Help

    Sorry about that, link now working

  4. #4
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Pop Up Message Help

    Your form posts to arform.php - why not just have the validation on that page, done in php and then print the errors to screen?

  5. #5
    DF MaSter whoyou's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    81
    Thanks
    0
    Thanked:        0
    Karma Level
    255

    Default Re: Pop Up Message Help

    Quote Originally Posted by John Keymer
    Your form posts to arform.php - why not just have the validation on that page, done in php and then print the errors to screen?
    You've totally lost me on that one

  6. #6
    DF VIP Member graham.edmon's Avatar
    Join Date
    May 2001
    Location
    Edinburgh
    Posts
    263
    Thanks
    0
    Thanked:        0
    Karma Level
    290

    Default Re: Pop Up Message Help

    create a funciton like

    HTML Code:
      function checkform()
    {
      validform = 1;
    
      // form validation
      if(document.all['name'].value == '')
        validform = 0;
    
      if(document.all['tel'].value == '')
        validform = 0; 
    
      if(document.all['email'].value == '')
        validform = 0;  
    
      if(document.all['day'].selectedIndex == -1)
        validform = 0;  
    
      if(document.all['month'].selectedIndex == -1)
        validform = 0;  
    
      if(document.all['year'].selectedIndex == -1)
        validform = 0;  
    
      if(document.all['purpose'].selectedIndex == -1)
        validform = 0; 
    
      if(validform)
      {
         alert("thanks, you will be contacted soon");
         return(true);
      }
     else
     { 
         alert("Fill in Name, Phone, Date of arrive, and purpose of visit");
         return(false);
      }
    }
    
    and change your form to be
    
    
          <form name="form1" method="post" action="/arform.php" onSubmit="return(checkform();)">
    
    and remove --onsubmit="MM_popupMsg('Thank you')"-- from your body tag.
    Languages: DotNet, C/C++, VB, PHP, Perl, COBOL (ewww), Pascal, ......
    Databases: SQLServer, Oracle, Ingres, Access, .......
    General geek....

Similar Threads

  1. Replies: 5
    Last Post: 30th October 2002, 02:50 PM
  2. Al-Qaeda encrypted message inercepted
    By theodotcom in forum The Comedy Club
    Replies: 15
    Last Post: 30th October 2002, 02:38 PM
  3. t68i has pls contacy support message 'can anyone help
    By bloye in forum Unlocking Questions & Solutions
    Replies: 3
    Last Post: 8th September 2002, 08:06 PM

Social Networking 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
  •