Posts: 84
Location: Brussels, Belgium
|
I'm just starting with php. And I made a simple mail script.
I'm just wondering if it's legal? You can e-mail from each e-mail adres you want to another!
What can the 'internet police' do against you if you put this script online?
Can they judge you for that?
Why has php no security around these things, they allow you to create fraud?
sendmail.php:
<?
$sender = $_REQUEST['sender'] ;
$receiver = $_REQUEST['receiver'] ;
$subj = $_REQUEST['subj'] ;
$message = $_REQUEST['message'] ;
mail( "$receiver", "$onderwerp",
$message, "From: $sender" );
?>
and the html file:
<html>
<head>
<title>
</title>
</head>
<body>
<form method="post" action="sendmail.php">
From (email): <input name="sender" type="text"><br>
To (email): <input name="receiver" type="text"><br>
Subject: <input name="subj" type="text"><br>
Message:<br>
<textarea name="message" rows="15" cols="40">
</textarea><br>
<input type="submit">
</form>
</body>
</html>
Last edited by Bulevardi; 08-14-2007 at 10:05 AM..
|