Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [PHP] Contact Form With Bootstrap


    DirectNULL
     Share

    Recommended Posts

    Hi all,

     

    I will release my own written easy contact form specially for you guys.

    Just edit your things @ the config.php included in the .zip file.

     

    Screenshots

     

     

    78jXiv3.png

    fMXWrEo.png

     

     

     

    Snippet

    if(isset($_POST['setform'])){
    
    
    
            $email = trim($_POST['email']);
    
            $name = trim($_POST['name']);
    
            $comments = trim($_POST['comments']);
    
    
    
            if ($email=="" || $comments=="" || $name=="")
    
            {
    
                echo '
    
                    <div class="alert alert-danger" role="alert">
    
                        Blank submission or you didnt fill in some fields. Go back.
    
                    </div>
    
                ';
    
            }
    
            else {
    
    
    
                if(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $email)) {
    
    
    
                    echo '
    
                        <div class="alert alert-warning" role="alert">
    
                            That does not look like a valid email address, please re-enter.
    
                        </div>
    
                    ';
    
                    exit;
    
    
    
                }
    
    
    
                include ('config.php');
    
    
    
                mail("$youremail", "$subject", $message, $headers);
    
    
    
                echo '
    
                    <div class="alert alert-success" role="alert">
    
                        Thank you '.$name.' for your e-mail. We will reply in 24 to 48 hours.
    
                    </div>
    
                ';
    
    
    
            }
    
    
    
        }
    

    Last but not least the download

    It will be found right here:

    HERE

    Edited by SeriiousGamerr
    Link to comment
    Share on other sites

    • 8 months later...

    Nice Work.

     

    Clashs.

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...