Php Form How To?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    thanks anyways i fixed it myself
    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

    Comment


      #17
      ok i solved it by adding CC field but now how i add a captcha here? i try but even i put captcha its gets submited
      Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

      <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

      Comment


        #18
        help please unable to add captcha to this coding :sad: someone plesae
        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

        Comment


          #19
          nevermind i fixed it again myself without anyones help.
          Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

          <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

          Comment


            #20
            i need a help please how i add this inside lava script?

            Code:
            <?php 
            if(isset($_POST[&#39;submit&#39;])) { 
              
            $to = "some@one.com"; 
            $to = $_POST[&#39;email&#39;]; 
            $subject = "New Email"; 
            $first_name = $_POST[&#39;fname&#39;]; 
            $last_name = $_POST[&#39;lname&#39;]; 
            $gender = $_POST[&#39;gender&#39;]; 
            $country = $_POST[&#39;country&#39;];
            $address1 = $_POST[&#39;address1&#39;]; 
            $address2 = $_POST[&#39;address2&#39;];
            $city = $_POST[&#39;city&#39;]; 
            $state = $_POST[&#39;state&#39;];
            $pincode = $_POST[&#39;pincode&#39;]; 
            $phone = $_POST[&#39;phone&#39;]; 
            $like_site = $_POST[&#39;like_site&#39;];
            $reffered = $_POST[&#39;reffered&#39;];
              
            
            
            $body = "First name: $first_name\n Last Name: $last_name\n  Gender: $gender\n Email: $email\n Country: $country\n Address1: $address1\n Address2: $address2\n City: $city\n State: $state\n Pincode: $pincode\n Phone Number: $phone\n Like This Site: $like_site\n Reffered By: $reffered\n"; 
              
            echo "Data has been submitted to $to!"; 
            mail($to, $subject, $body); 
            
            } else { 
            echo "Error!";
            } 
            ?>
            where must i add this code and form how? help please
            Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

            <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

            Comment


              #21
              have you got a capch image set ?
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #22
                yes bru now how do i add this to lava? from codre or where i get error i confused
                Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                Comment


                  #23
                  give me capch set and core and sign up from


                  ill add this
                  Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                  Visit: WapMasterz Coming Back Soon!
                  _______
                  SCRIPTS FOR SALE BY SUBZERO
                  Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                  FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                  _______
                  Info & Tips
                  php.net
                  w3schools.com

                  Comment


                    #24
                    here cap.php

                    <?php
                    session_start();

                    $w = 124; // height of the image
                    $h = 35; // width of the image
                    $l = 6; // length of security code
                    $baseList = &#39;0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ&#39;; // the characters to be used when generating the code

                    $code = "";
                    $counter = 0;

                    $img = @imagecreate($w, $h) or die(&#39;Cannot initialize GD!&#39;); // create image

                    for ($i = 0; $i < 10; $i++)
                    {
                    imageline($img, mt_rand(0, $w), mt_rand(0, $h), mt_rand(0, $w), mt_rand(0, $h),
                    imagecolorallocate($img, mt_rand(150, 255), mt_rand(150, 255), mt_rand(150, 255)));
                    }

                    for ($i = 0, $x = 0; $i < $l; $i++)
                    {
                    $randChar = substr($baseList, rand(0, strlen($baseList) - 1), 1);
                    $x += 10 + mt_rand(0, 10);
                    imagechar($img, mt_rand(3, 5), $x, mt_rand(5, 20), $randChar, imagecolorallocate
                    ($img, mt_rand(0, 155), mt_rand(0, 155), mt_rand(0, 155)));
                    $code .= strtolower($randChar);

                    }

                    header(&#39;Content-Type: image/jpeg&#39;);
                    imagejpeg($img);
                    imagedestroy($img);

                    $_SESSION[&#39;verify&#39;] = $code;

                    ?>

                    and in core


                    echo "

                    success</p>";
                    unset($_SESSION[&#39;verify&#39;]);
                    $result = true;
                    }else{
                    echo "

                    unsuccess</p>";

                    $result = false;
                    }
                    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                    Comment


                      #25
                      <?php


                      $w = 124; // height of the image
                      $h = 35; // width of the image
                      $l = 6; // length of security code
                      $baseList = &#39;0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ&#39;; // the characters to be used when generating the code

                      $code = "";
                      $counter = 0;

                      $img = @imagecreate($w, $h) or die(&#39;Cannot initialize GD!&#39;); // create image

                      for ($i = 0; $i < 10; $i++)
                      {
                      imageline($img, mt_rand(0, $w), mt_rand(0, $h), mt_rand(0, $w), mt_rand(0, $h),
                      imagecolorallocate($img, mt_rand(150, 255), mt_rand(150, 255), mt_rand(150, 255)));
                      }

                      for ($i = 0, $x = 0; $i < $l; $i++)
                      {
                      $randChar = substr($baseList, rand(0, strlen($baseList) - 1), 1);
                      $x += 10 + mt_rand(0, 10);
                      imagechar($img, mt_rand(3, 5), $x, mt_rand(5, 20), $randChar, imagecolorallocate
                      ($img, mt_rand(0, 155), mt_rand(0, 155), mt_rand(0, 155)));
                      $code .= strtolower($randChar);

                      }

                      header(&#39;Content-Type: image/jpeg&#39;);
                      imagejpeg($img);
                      imagedestroy($img);

                      $_SESSION[&#39;verify&#39;] = $code;

                      ?>

                      and in core

                      $verify = isset($_POST[&#39;verify&#39;]) ? strtolower($_POST[&#39;verify&#39;]) : "";
                      if ($verify == $_SESSION[&#39;verify&#39;])
                      {
                      echo "

                      success</p>";
                      unset($_SESSION[&#39;verify&#39;]);
                      $result = true;
                      }else{
                      echo "

                      unsuccess</p>";

                      $result = false;
                      }
                      ?>[/b]

                      add this to captch.php

                      then in sites add this to signup <?php session_start();
                      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                      Visit: WapMasterz Coming Back Soon!
                      _______
                      SCRIPTS FOR SALE BY SUBZERO
                      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                      _______
                      Info & Tips
                      php.net
                      w3schools.com

                      Comment


                        #26
                        bro i not ask this i ask how i add this


                        <?php
                        if(isset($_POST[&#39;submit&#39;])) {

                        $to = "some@one.com";
                        $to = $_POST[&#39;email&#39;];
                        $subject = "New Email";
                        $first_name = $_POST[&#39;fname&#39;];
                        $last_name = $_POST[&#39;lname&#39;];
                        $gender = $_POST[&#39;gender&#39;];
                        $country = $_POST[&#39;country&#39;];
                        $address1 = $_POST[&#39;address1&#39;];
                        $address2 = $_POST[&#39;address2&#39;];
                        $city = $_POST[&#39;city&#39;];
                        $state = $_POST[&#39;state&#39;];
                        $pincode = $_POST[&#39;pincode&#39;];
                        $phone = $_POST[&#39;phone&#39;];
                        $like_site = $_POST[&#39;like_site&#39;];
                        $reffered = $_POST[&#39;reffered&#39;];



                        $body = "First name: $first_name\n Last Name: $last_name\n Gender: $gender\n Email: $email\n Country: $country\n Address1: $address1\n Address2: $address2\n City: $city\n State: $state\n Pincode: $pincode\n Phone Number: $phone\n Like This Site: $like_site\n Reffered By: $reffered\n";

                        echo "Data has been submitted to $to!";
                        mail($to, $subject, $body);

                        } else {
                        echo "Error!";
                        }
                        ?>]

                        to lava
                        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                        Comment


                          #27
                          dont keep it bare add

                          Code:
                          $to = "some@one.com";
                          $to = mysql_real_escape_string( $_POST["email"] );
                          $subject = "New Email";
                          $first_name = mysql_real_escape_string( $_POST["fname"] );
                          $last_name = mysql_real_escape_string( $_POST["lname"] );
                          $gender = mysql_real_escape_string( $_POST["gender"] );
                          $country = mysql_real_escape_string( $_POST["country"] );
                          $address1 = mysql_real_escape_string( $_POST["address1"] );
                          $address2 = mysql_real_escape_string( $_POST["address2"] );
                          $city = mysql_real_escape_string( $_POST["city"] );
                          $state = mysql_real_escape_string( $_POST["state"] );
                          $pincode = mysql_real_escape_string( $_POST["pincode"] );
                          $like_site = mysql_real_escape_string( $_POST["plike_site"] );
                          $reffered = mysql_real_escape_string( $_POST["reffered"] );
                          Want something coded email me at sales@webnwaphost.com for a prices.




                          Comment

                          Working...
                          X