i have a login site and i need it to send me the name/password after people log in but i can not for the life or me figure out how to code that..
please help if you need to see the code to write it let me know
thanks
Printable View
i have a login site and i need it to send me the name/password after people log in but i can not for the life or me figure out how to code that..
please help if you need to see the code to write it let me know
thanks
I'm assuming you already know HTML. You need to check out tutorials on PHP.
[url]http://www.w*schools.com/php/default.asp[/url]
yah i know html but i think what my main problem currently is is that i can not find a web hosting site that:
- free
- totally ad free
- allows php
- allows mail/sendmail commands
All the free hosts I know don't allow sendmail, for obvious reasons (i.e. spammers abusing it).
But [url=http://www.awardspace.com/]AwardSpace[/url] is a free webhost that is ad-free and supports PHP. Best free host I've used so far.
ok so i made an account on that site its pretty nice so far so i got this little email script to test the php
[CODE]
<html>
<body>
<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "MYEMAIL@BLABLA.COM", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mailform.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='*5' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>
[/CODE]
but it doesnt work... so if i cant even get that working how can i get a fake page working... help please
Are you sure mail is not blocked on the host you are using?
I'm using that site u said... So idk so if I just pay for a site like yahoo or this award one you said then will I be able to sendmail? Is sendmail just blocked on free webhosts? To solve this problem do i just need to pay?
I said that "All the free hosts I know don't allow sendmail", AwardSpace included. AwardSpace doesn't allow sendmail.
If you want to send mail, you will probably have to get paid hosting.
ahh ok well for my last question... whats a cheap like *.**$ a month paid to host site would yahoo work