PDA

View Full Version : need programmers help



Rifts
01-28-2008, 05:54 PM
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

Moonbat
01-28-2008, 07:48 PM
I'm assuming you already know HTML. You need to check out tutorials on PHP.

http://www.w*schools.com/php/default.asp

Rifts
01-28-2008, 11:29 PM
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

Moonbat
01-29-2008, 03:48 PM
All the free hosts I know don't allow sendmail, for obvious reasons (i.e. spammers abusing it).

But AwardSpace (http://www.awardspace.com/) is a free webhost that is ad-free and supports PHP. Best free host I've used so far.

Rifts
01-29-2008, 05:25 PM
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



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


but it doesnt work... so if i cant even get that working how can i get a fake page working... help please

Moonbat
01-30-2008, 07:55 AM
Are you sure mail is not blocked on the host you are using?

Rifts
01-30-2008, 12:22 PM
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?

Moonbat
01-30-2008, 03:59 PM
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.

Rifts
01-31-2008, 09:24 AM
ahh ok well for my last question... whats a cheap like *.**$ a month paid to host site would yahoo work