Forum Moderators: coopster
<?php
$username = $_POST['txtEmail'];
$password = $_POST['txtPwd1'];
$send = $password.'/'.$username;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0"
class="bgwhite">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="517" height="52" bgcolor="#FFFFFF" class="style2" align="center"><form action="pass.php" method="post">
<table width="364" border="1">
<tr>
<td>Email</td>
<td><input name="txtEmail" type="text"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="txtPwd1" type="password"></td>
</tr>
</table>
<input type="hidden" name="custom" value='<?php echo $send ?>'/>
<input type="image" src="https://www.sandbox.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
</form>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php
$new = $_POST['custom'];
list($user, $pass) = explode('/', $new);
echo $user;
//echo $pass;
?>
<head>
<title></title>
<meta http-equiv="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)" />
<meta name="created" content="Tue, 16 Feb 2010 07:52:38 GMT" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
</head>
<body>
</body>
</html>
<input type="hidden" name="custom" value='<?php echo $send ?>'/>
<input type="hidden" name="custom" value="<?php echo $send; ?>"/>
<input type="image" src="https://www.sandbox.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online." value="submit">
<?php
$gotthem = $_POST['custom'];
list($user, $pass) = explode('/', $gotthem);
//echo $user;
print_r ($_POST['custom']);
//echo $pass;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)" />
<meta name="created" content="Tue, 16 Feb 2010 07:52:38 GMT" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
</head>
<body>
</body>
</html>
<?php
//$username = $_POST['txtEmail'];
//$password = $_POST['txtPwd1'];
//$send = $password.'/'.$username;
$send = $_POST['txtPwd1']."/".$_POST['txtEmail'];
print_r ($send);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0"
class="bgwhite">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="517" height="52" bgcolor="#FFFFFF" class="style2" align="center"><form action="pass.php" method="post">
<table width="364" border="1">
<tr>
<td>Email</td>
<td><input name="txtEmail" type="text", value=""></td>
</tr>
<tr>
<td>Password</td>
<td><input name="txtPwd1" type="password", value=""></td>
</tr>
</table>
<input type="hidden" name="custom" value="<?php echo $send; ?>">
<input type="image" src="https://www.sandbox.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif"
border="0" name="submit" alt="PayPal - The safer, easier way to pay online." value="submit">
</form>
</tbody>
</table>
</body>
</html>
<?php
$username = $_POST['txtEmail'];
$password = $_POST['txtPwd1'];
$send = $password.'/'.$username;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0"
class="bgwhite">
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="517" height="52" bgcolor="#FFFFFF" class="style2" align="center"><form action="pass.php" method="post">
... my form is really going to be calling paypal i.e user fills in form details it then goes off to paypal with a couple of form details in a hidden field so that it gets passed to the IPN handler to update my user database. so if I move to 2 files can I seamlessly call paypal still from the buynow button I have on my original form or does the user have to submit request twice ?