thanks anyways i fixed it myself
Php Form How To?
Collapse
X
-
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>

-
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
-
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
-
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
-
i need a help please how i add this inside lava script?
where must i add this code and form how? help pleaseCode:<?php if(isset($_POST['submit'])) {   $to = "some@one.com"; $to = $_POST['email']; $subject = "New Email"; $first_name = $_POST['fname']; $last_name = $_POST['lname']; $gender = $_POST['gender']; $country = $_POST['country']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $state = $_POST['state']; $pincode = $_POST['pincode']; $phone = $_POST['phone']; $like_site = $_POST['like_site']; $reffered = $_POST['reffered'];   $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!"; } ?>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
-
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
-
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
-
give me capch set and core and sign up from
ill add thisVisit: 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
-
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 = '0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ'; // the characters to be used when generating the code
$code = "";
$counter = 0;
$img = @imagecreate($w, $h) or die('Cannot initialize GD!'); // 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('Content-Type: image/jpeg');
imagejpeg($img);
imagedestroy($img);
$_SESSION['verify'] = $code;
?>
and in core
echo "
success</p>";
unset($_SESSION['verify']);
$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
-
<?php
$w = 124; // height of the image
$h = 35; // width of the image
$l = 6; // length of security code
$baseList = '0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ'; // the characters to be used when generating the code
$code = "";
$counter = 0;
$img = @imagecreate($w, $h) or die('Cannot initialize GD!'); // 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('Content-Type: image/jpeg');
imagejpeg($img);
imagedestroy($img);
$_SESSION['verify'] = $code;
?>
and in core
$verify = isset($_POST['verify']) ? strtolower($_POST['verify']) : "";
if ($verify == $_SESSION['verify'])
{
echo "
success</p>";
unset($_SESSION['verify']);
$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
-
bro i not ask this i ask how i add this
<?php
if(isset($_POST['submit'])) {
$to = "some@one.com";
$to = $_POST['email'];
$subject = "New Email";
$first_name = $_POST['fname'];
$last_name = $_POST['lname'];
$gender = $_POST['gender'];
$country = $_POST['country'];
$address1 = $_POST['address1'];
$address2 = $_POST['address2'];
$city = $_POST['city'];
$state = $_POST['state'];
$pincode = $_POST['pincode'];
$phone = $_POST['phone'];
$like_site = $_POST['like_site'];
$reffered = $_POST['reffered'];
$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 lavaFailure 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
-
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"] );
Comment
Comment