Hacking and more...
HaCkinG CulT
Lista Forumurilor Pe Tematici
Hacking and more... | Reguli | Inregistrare | Login

POZE HACKING AND MORE...

Nu sunteti logat.
Nou pe simpatie:
Cristina02
Femeie
23 ani
Arges
cauta Barbat
26 - 80 ani
Hacking and more... / Web-DesiGn Stuff / contact script [need] Moderat de Shocker
Autor
Mesaj Pagini: 1
Yakushiji
Grand Master

Inregistrat: acum 18 ani
Postari: 389
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.


_______________________________________


pus acum 17 ani
   
FrEeBoY
Elite Member

Din: ALKATRAZ
Inregistrat: acum 17 ani
Postari: 596
<form action="script.php" method="post">
Nume:<input type="text" name="nume">
Prenume:<input type="text" name="prenume"><br>
Email:<input type="text" name="email"><br>
Comentarii:<textarea name="obs" rows="5" cols="30"></textarea>
<input type="submit" value="Trimite"><input type="reset" value="Sterge">
</form> ASTA E CA SA POSTEZE PE SITE


SI ASTA E SA ITI TRIMITA MAIL

               
                   <input type="hidden" name="save" value="save" />
                   <table cellspacing="7" border="0" cellpadding="0">
                     <tr>
                       <td><label for="name_title" class="contact">Adresare</label></td>
                       <td><input type="text" name="name_title" size="6" class="input2"  id="name_title" tabindex="1" />
                    Dl, Dna </td>
                     </tr>
                     <tr>
                       <td><label for="firstname" class="contact">Nume</label></td>
                       <td><input type="text" name="firstname" size="25" class="input2"  id="firstname" tabindex="2" />
                    <font color="#CC0066">*</font></td>
                     </tr>
                     <tr>
                       <td><label for="surname" class="contact">Prenume</label></td>
                       <td><input type="text" name="surname" size="25" class="input2"  id="surname" tabindex="3" />
                    <font color="#CC0066">*</font></td>
                     </tr>
                     <tr>
                       <td><label for="company" class="contact">Companie</label></td>
                       <td><input type="text" name="company" class="input2"  id="company" tabindex="4" /></td>
                     </tr>
                     <tr>
                       <td><label for="town" class="contact">Oras</label></td>
                       <td><input type="text" name="town" class="input2"  id="town" tabindex="8" /></td>
                     </tr>
                     <tr>
                       <td><label for="email" class="contact">Adresa email </label></td>
                       <td><input type="text" name="email" size="25" class="input2"  id="email" tabindex="11" />
                    <font color="#CC0066">*</font></td>
                     </tr>
                     <tr>
                       <td><label for="telephone" class="contact">Telefon</label></td>
                       <td><input type="text" name="telephone" size="25" class="input2"  id="telephone" tabindex="12" />
                    <font color="#CC0066">*</font></td>
                     </tr>
                   </table>
                   <table width="100%" cellspacing="7" border="0" cellpadding="0">               
                     <tr>
                       <td valign="top" colspan="2"><label for="comments" class="contact">Mesajul dvs. </label>
                           <br />
                           <textarea name="comments" cols="50" rows="7" class="input2" id="comments" tabindex="16"></textarea>
                       </td>
                     </tr>
                     <tr>
                                                   

                     </tr>
                     <tr>
                       <td align="center" colspan="2"><br />
                           <input type="hidden" name="contact_step" value="process" />
<!--                            <input type="hidden" name="vcode" value="">
-->
                           <input type="button" name="action" value="Trimite" onClick="verificaContact()" />
                           <br /></td>
                     </tr>
                   </table>
         </form>

Modificat de FrEeBoY (acum 17 ani)


_______________________________________

cui nu ii place site u sa mi dea un pm si sa zica ce nu ii place si voi incerca sa modific =>

pus acum 17 ani
   
TE4L
Super Buruian

Inregistrat: acum 18 ani
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>&nbsp;</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 )

pus acum 17 ani
   
Yakushiji
Grand Master

Inregistrat: acum 18 ani
Postari: 389
merci teal dar... cum le salvez ? (contact.html al doi-lea cod... . si primul ?)

_______________________________________


pus acum 17 ani
   
TE4L
Super Buruian

Inregistrat: acum 18 ani
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 )

pus acum 17 ani
   
Yakushiji
Grand Master

Inregistrat: acum 18 ani
Postari: 389
noh teal... nu merge... cred ca am gresit eu ceva sau e codul gresit..



uite ce am facut eu...


_______________________________________


pus acum 17 ani
   
Maxxim
Bluffer

Inregistrat: acum 18 ani
Postari: 366
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

pus acum 17 ani
   
Yakushiji
Grand Master

Inregistrat: acum 18 ani
Postari: 389
noh.. am modificat.. vezi tu daca merge maxxim


nu timite mail


_______________________________________


pus acum 17 ani
   
Maxxim
Bluffer

Inregistrat: acum 18 ani
Postari: 366
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

pus acum 17 ani
   
TE4L
Super Buruian

Inregistrat: acum 18 ani
Postari: 356
imi dai aces momentan sa vad ce are?

daca da. cauta-ma pe msn.


_______________________________________


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

pus acum 17 ani
   
Pagini: 1  

Mergi la