Php Form How To?

Started on the old forum in August 2008 · view the original in the archive · old links redirect here

26 replies · 1,337 views · started 18 years ago · 1 min read

5 participants
subzero Super moderator Fellow · 3,954 posts #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... _______…

subzero Super moderator Fellow · 3,954 posts #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... _______…

learner Lead · 587 posts #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 = '0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // 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 ";
unset($_SESSION['verify']); $result = true; }else{ echo "

unsuccess ";

	$result = false;
}

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

BEST MOBILE ADVERTISER

External image (may be gone)

subzero Super moderator Fellow · 3,954 posts #25
<?php $w = 124; // height of the image $h = 35; // width of the image $l = 6; // length of security code $baseList = '0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; // 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 "; unset($_SESSION['verify']); $result = true; }else{ echo "

unsuccess ";

$result = false; } ?>

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... _______…

learner Lead · 587 posts #26

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 lava

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

BEST MOBILE ADVERTISER

External image (may be gone)

crazybrumi Super moderator Principal · 1,064 posts #27

dont keep it bare add

$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.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close