Hacking and more...
HaCkinG CulT
|
Nou pe simpatie: Alexanndra1994 24 ani
 | Femeie 24 ani Bucuresti cauta Barbat 24 - 43 ani |
|
|
Hacking and more...ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
|
|
Am si eu nevoie de un script ( pe care il pot adauga pe pagina mea) contact. Stiti voi, ca la un cms ( ex php-fusion ) . care sa aiba
Name: Subject: Your Email:
Content:
care sa imi timita un mail mie.
_______________________________________

|
|
| |
|
| #3 |
TE4LSuper Buruian
Postari: 356
|
|
email send:
Code:
<?
if($_SERVER['REQUEST_METHOD']=='POST')
{
if(isset($_GET['nume'],$_GET['email'],$_GET['subiect'],$_GET['mesaj']))
{
$nume=$_GET['nume'];
$subiect=$_GET['subiect'];
$mesaj=$_GET['mesaj'];
$catre='email_tau @ server . com';
$from=$_GET['email'];
if(mail($catre,$subiect,$mesaj,"De la $nume ($from) n"))
{
echo '<strong>Message Sent</strong>';
}
else
{
echo '<strong><font color=red>Messajge Not Sent</font></strong>';
}
}
}
?> |
contact.html
Code:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contact Send</title>
<script language="javascript">
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest(); //Not IE
}
else
{
if(window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP"); //IE
}
else
{
//Display your error message here.
//and inform the user they might want to upgrade
//their browser.
alert("Your browser doesn't support the XmlHttpRequest object. Better upgrade to Firefox.");
}
}
}
//Get our browser specific XmlHttpRequest object.
var Req = getXmlHttpRequestObject();
//Initiate the asyncronous request.
function SendEmail()
{
var file='email_send.php';
file+='?nume='+document.contact.nume.value;
file+='&email='+document.contact.email.value;
file+='&subiect='+document.contact.subiect.value;
file+='&mesaj='+document.contact.mesaj.value;
Send(file);
}
function Send(file)
{
//If our XmlHttpRequest object is not in the middle of a request, start the new asyncronous call.
if (Req.readyState == 4 || Req.readyState == 0)
{
//Setup the connection as a GET call to the file.
//True explicity sets the request to asyncronous (default).
Req.open("POST", file, true);
//Make the actual request.
Req.send(null);
}
}
//Set the function that will be called when the XmlHttpRequest objects state changes.
Req.onreadystatechange=function()
{
//Check to see if the XmlHttpRequests state is finished.
if (Req.readyState == 4)
{
//Set the contents of our span element to the result of the asyncronous call.
document.getElementById('contact').innerHTML = Req.responseText;
}
}
</script>
<style>
body
{
font:10px Verdana;
}
table
{
border:1px solid #D4D4D4;
background:#F1F1F1;
font:10px Verdana;
}
input
{
font:10px Verdana;
padding:5px;
width:200px;
}
textarea
{
font:10px Verdana;
padding:5px;
width:200px;
height:100px;
}
</style>
</head>
<body>
<form name="contact" action="javascript:SendEmail()">
<table cellpadding="0" cellspacing="5">
<tr>
<td>Nume</td><td><input type="text" name="nume" /></td>
</tr>
<tr>
<td>Email</td><td><input type="text" name="email" /></td>
</tr>
<tr>
<td>Subiect</td><td><input type="text" name="subiect" /></td>
</tr>
<tr>
<td>Mesaj</td><td><textarea name="mesaj"></textarea></td>
</tr>
<tr>
<td> </td><td><a href="javascript:SendEmail()">Trimite</a></td>
</tr>
</table>
</form>
<span id="contact"></span>
</body>
</html> |
_______________________________________

Beware of the buruian( he is ... super )
|
|
| |
|
| #4 |
|
|
merci teal dar... cum le salvez ? (contact.html al doi-lea cod... . si primul ?)
_______________________________________

|
|
| |
|
| #5 |
TE4LSuper Buruian
Postari: 356
|
|
email_send.php al doilea. am uitat sa mentionez. dar daca te uitai pe script-ul din contact.html vedeai.
ai putea sa modifici oleaca functia asta si sa o faci sa arate asa
Code:
function SendEmail()
{
var file='email_send.php';
file+='?nume='+document.contact.nume.value;
file+='&email='+document.contact.email.value;
file+='&subiect='+document.contact.subiect.value;
file+='&mesaj='+document.contact.mesaj.value;
Send(file);
document.contact.nume.value="";
document.contact.email.value="";
document.contact.nume.value="";
document.contact.subiect.value="";
document.contact.mesaj.value="";
} |
ceea ce vezi in plus, face campurile fara text.
ai putea sa faci si functii care iti verifica daca ce e pus la nume, subiect, mesaj, email sunt date corecte.
daca ai nevoie si de asta, sa imi zici.
@Freeboy, ce trimite mail la tine? arata codul.
_______________________________________

Beware of the buruian( he is ... super )
|
|
| |
|
| #7 |
|
|
functioneaza perfect,invata sa`ti scrii adresa de mail: $catre='blabla @ yahoo . com'; nu e asta formatul unei adrese de mail 
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
| |
|
| #9 |
|
|
ce ai uploadat tu acolo...aia am scos si am verificat pe lx.ro si merge perfect...doar ca trebuia sa modifici adresa de mail din $catre...deci merge sigur...vezi poate primesti in Bulk
_______________________________________ Ideile mari se exprima prin cuvinte banale
|
|
| |
|
| #10 |
TE4LSuper Buruian
Postari: 356
|
|
imi dai aces momentan sa vad ce are?
daca da. cauta-ma pe msn.
_______________________________________

Beware of the buruian( he is ... super )
|
|
| |
|