Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2002
    Messaggi
    6

    Aiuto Form Titolo al posto indirizzo E-mail

    Premesso che non conosco il linguaggio PHP, ma mi interesso più di grafica, ho trovato un form in php sme_form e volevo sapere se era possibile far comparire un titolo invece che l'indirizzo e-mail, quando il destinatario riceve l'e-mail

    Ho cercato nel forum se ci fosse già qualche soluzione, ma non sono stato fortunato.
    Cmq grazie anticipatamente.

    Questo è lo script, credo già conosciuto.

    <?php $email1 = "vvv@tiscali.it";

    // Contact formname
    $sme_form_c = "Contatto dal form Richiesta Info.it";

    // your site URL
    $homepageurl = "Re: Richiesta Info";

    // automatic message send to user send email
    $tnk = "abbiamo ricevuto il Vostro messaggio, risponderemo prima possibile
    Saluti.
    - "Non c'è nulla di nascosto che non sarà rivelato, nè segreto che resterà sconosciuto" (Vangelo di San Luca) -

  2. #2
    Da quello che ho capito dovresti postare tutto lo scrit perché inizalmente dichiara le funzioni della variabile email e poi sicuro la utilizza in una porzione di codice + giù.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2002
    Messaggi
    6

    PHP - FORM - Titolo al posto indirizzo e-mail

    Grazie per la risposta, questo è l'intero script originale.


    $email1 = "script@scriptme.com";

    // Contact formname
    $sme_form_c = "Contact form from www.scriptme.com";

    // your site URL
    $homepageurl = "http://www.scriptme.com";

    // automatic message send to user send email
    $tnk = " we recive your email now soon we send the solution";
    // not change more anything
    // not change more anything
    // not change more anything
    // not change more anything
    // not change more anything
    // not change more anything
    ?>
    <script Language="JavaScript">
    <!--
    function checa_formulario(form){
    if (form.Name.value == ""){
    alert("Please your name!");
    form.Name.focus();
    return (false);
    }
    if (form.sub.value == ""){
    alert("Please Message Subject!");
    form.sub.focus();
    return (false);
    }
    if (form.Message.value == ""){
    alert("Please your Message!");
    form.Message.focus();
    return (false);
    }
    if (form.Email.value.indexOf('@', 0) == -1){
    alert("Please your E-mail!");
    form.Email.focus();
    return (false);

    }
    return (true);
    }
    //-->
    </script>
    <form method="post" action="" name='form' onSubmit='return checa_formulario(this)'>
    <?php
    $date = date("m/d/Y H:i:s");
    if (!$_POST['sme_form']) { ?>
    <table width="70%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="eeeeee">
    <tr bgcolor="#FFFFFF">
    <td width="30%"> <div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Your Name:</FONT></div></td>
    <td width="70%" > <input type="text" name="Name" size="40">
    </td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td width="30%"> <div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Your Email:</FONT></div></td>
    <td width="70%" > <input type="text" name="Email" size="40">
    </td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td width="30%" ><div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Message Subject:</FONT></div></td>
    <td width="70%"><input name="sub" type="text" size="40">
    </td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td width="30%" ><div align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>*Message</FONT></div></td>
    <td width="70%"><textarea name="Message" cols="40" rows="5" ></textarea>
    </td>
    </tr>
    <tr bgcolor="#FFFFFF">
    <td width="30%" nowrap><input type="hidden" name="sme_form" value="1"></td>
    <td width="70%"><input type="submit" value="Enviar" name="submit">
    <input type="reset" value="Cancelar" name="reset">
    </td>
    </tr>
    </table>
    </form>
    <?php }

    else
    {
    echo "<table width=100%><tr>
    Thanks for contact us : $_POST[Name]!


    We contact your in email : [b]$_POST[Email]
    </tr></table></center>";

    mail("$email1", "$sme_form_c","
    Message sent in $date
    --------------------------------------------------------

    Name : $_POST[Name]
    Email : $_POST[Email]
    Subject : $_POST[sub]
    Message : $_POST[Message]
    --------------------------------------------------------
    Powered by SmE Form.\n
    Script by http://www.scriptme.com\n\n
    ","From: $_POST[Email]");

    mail("$_POST[Email]","$homepageurl ", " $Name\n
    ---------------------------------------------\n
    Dear:$_POST[Nome]\n
    $tnk \n
    ---------------------------------------------\n
    Powered by SmE Form.\n
    Script by http://www.scriptme.com\n\n","From: $email1");
    }
    ?>
    - "Non c'è nulla di nascosto che non sarà rivelato, nè segreto che resterà sconosciuto" (Vangelo di San Luca) -

  4. #4
    Utente di HTML.it
    Registrato dal
    Jul 2002
    Messaggi
    6
    up
    - "Non c'è nulla di nascosto che non sarà rivelato, nè segreto che resterà sconosciuto" (Vangelo di San Luca) -

  5. #5

    Re: Aiuto Form Titolo al posto indirizzo E-mail

    Allora di questo script:

    <?php $email1 = "vvv@tiscali.it";

    // Contact formname
    $sme_form_c = "Contatto dal form Richiesta Info.it";

    // your site URL
    $homepageurl = "Re: Richiesta Info";

    // automatic message send to user send email
    $tnk = "abbiamo ricevuto il Vostro messaggio, risponderemo prima possibile

    .....

    La variabile $email viene sfruttata solo qui:

    Codice PHP:
    mail("$email1""$sme_form_c","
    Message sent in 
    $date 
    Lo script mi pare che comunque non puoi modificarlo xkè quella variabile fornisce l'email nella parte soprascritta.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.