Torna indietro   Hardware Upgrade Forum > Software > Programmazione

HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione
HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione
HONOR ha finalmente lanciato il suo nuovo flagship: Magic 8 Pro. Lo abbiamo provato a fondo in queste settimane e ve lo raccontiamo nella nostra recensione completa. HONOR rimane fedele alle linee della versione precedente, aggiungendo però un nuovo tasto dedicato all'AI. Ma è al suo interno che c'è la vera rivoluzione grazie al nuovo Snapdragon 8 Elite Gen 5 e alla nuova MagicOS 10
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata
Le webcam Insta360 Link 2 Pro e Link 2C Pro sono una proposta di fascia alta per chi cerca qualità 4K e tracciamento automatico del soggetto senza ricorrere a configurazioni complesse. Entrambi i modelli condividono sensore, ottiche e funzionalità audio avanzate, differenziandosi per il sistema di tracciamento: gimbal a due assi sul modello Link 2 Pro, soluzione digitale sul 2C Pro
Motorola edge 70: lo smartphone ultrasottile che non rinuncia a batteria e concretezza
Motorola edge 70: lo smartphone ultrasottile che non rinuncia a batteria e concretezza
Motorola edge 70 porta il concetto di smartphone ultrasottile su un terreno più concreto e accessibile: abbina uno spessore sotto i 6 mm a una batteria di capacità relativamente elevata, un display pOLED da 6,7 pollici e un comparto fotografico triplo da 50 MP. Non punta ai record di potenza, ma si configura come alternativa più pragmatica rispetto ai modelli sottili più costosi di Samsung e Apple
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 07-06-2004, 11:26   #1
D4rkAng3l
Bannato
 
Iscritto dal: Mar 2004
Città: Roma
Messaggi: 2688
Aiutino a modificare questo semplice script PHP

Mi dareste una mano a riuscire a modificare questo semplice script per mandare le mail...dovrei togliere il menù a tendina dove dà l'opzione di scelta a quale e-mail mandare il messaggio...vorrei che lo mandasse solamente ad uno (senza scelta) ma se lo tolgo non mi manda più la mail...si può fare?come?

<?
/*********************************************************************************
* This script was created by Melody Mayberry. *
* http://www.melbell.com *
* *
* Feel free to edit the script as you see fit but PLEASE leave this comment in. *
* You are welcome to add your own line to the comment showing the changes you *
* have made. *
* *
* Feel free to email me and let me know if you are using, I'd like to see my *
* script in action on someone else's site! You can find my contact *
* information at the website above! *
* *
*********************************************************************************/


// DO NOT MESS WITH THESE TWO LINES
$subject_array = array();
$recipient_array = array();
///////////////////////////////////

$this_script = "emailform.php"; // The name of THIS file, if you change it.

// Edit only what's between the quotation marks in the below lines.
// These will be the subjects that your users can choose from
// You can have as many as you want.
// Each one must be set up like so:
// $subject_array[] = "What You Want This Choice To Be";
// Make sure to remove empty ones that you aren't using. Just delete the entire line.
$subject_array[] = "Prova 1";
$subject_array[] = "Prova 2";
$subject_array[] = "Prova 3";
$subject_array[] = "Prova 4";
$subject_array[] = "Prova 5";

// Edit only what's between the quotation marks in the below lines.
// These lines contain the various people that can be contacted via your form.
// You can have as many as you want.
// Each one must be set up like so:
// $recipient_array["UNIQUE Short Name"] = "[email protected]";
// The "UNIQUE Short Name" will be shown in the select box.
// This allows the actual email address to be hidden from the user.
// Make sure to remove empty ones that you aren't using. Just delete the entire line.
$recipient_array["Your Email"] = "[email protected]";
//Aggiungi altre linee come quella di sopra se vuoi dare la possibilità di mandare un'e-mail ad un altro indirizzo by Andrea



////////////////////////////////////////////////////////////////////////////////////
// Do Not Edit Below Here Unless You Know What You Are Doing
////////////////////////////////////////////////////////////////////////////////////
if ($_POST["send"] == "true") {
$to = $_POST["to"];
$name = $_POST["name"];
$email = $_POST["email"];
$the_subject = $_POST["subject"];
$message = $_POST["message"];
if (($name == "") OR ($email == "") OR ($message == "")) {
print ("<div id=\"sectionContent\">");
print ("<font color=\"red\">One of the fields was left blank. Please put something in all fields.</font><br><br>");
print ("</div><br>");
email_form();
} elseif (ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email)) {
$recipient = $to;
$subject = $the_subject;
$additional_headers = ("From: $email\n");
$body = ("Name: $name\nEmail: $email\n\nMessage:\n\n" . $message);
if (mail($recipient, $subject, $body, $additional_headers)) {
print ("<div id=\"sectionContent\">");
print ("The Mail was sent successfully to $recipient.<br><br>");
print ("</div><br>");
} else {
print ("<div id=\"sectionContent\">");
print ("<font color=\"red\">Uh-Oh! Something went wrong with the script! Please try again.</font><br><br>");
print ("</div><br>");
$send = "false";
email_form();
}
} else {
print ("<div id=\"sectionContent\">");
print ("<font color=\"red\">That email address does not appear to be valid. Please try again.</font><br><br>");
print ("</div><br>");
$send = "false";
email_form();
}
} else {
print ("<div id=\"sectionContent\">");
print ("<br><b>CONTACT ME:</b><br>");
print ("</div><br>");
email_form();
}

function email_form()
{
global $subject_array, $recipient_array, $this_script, $PHP_SELF;

print ("<div id=\"sectionContent\">");
print ("<form METHOD=POST action=\"$PHP_SELF\">\n");
print ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"hidden\" name=\"send\" value=\"true\">\n");
print ("<select name=\"to\">\n");
foreach ($recipient_array as $key => $value) {
print ("<option value=\"" . $value . "\">" . $key . "</option>\n");
}
print ("</select><br>\n");
print ("<br>&nbsp;Name:&nbsp;&nbsp;<input type=\"text\" name=\"name\"><br><br>\n");
print ("Your Email Address:&nbsp;\n");
print ("<input type=\"text\" name=\"email\" size=\"40\"><br>\n");
print ("<br><select name=\"subject\">\n");
foreach ($subject_array as $value2) {
print ("<option value=\"" . $value2 . "\">" . $value2 . "</option>\n");
}
print ("</select><br><br>\n");
print ("Your Message:<br>\n");
print ("<textarea cols=\"50\" rows=\"5\" name=\"message\"></textarea><br><br>\n");
print ("<input type=\"submit\" value=\"Submit\">&nbsp;&nbsp;\n");
print ("<input type=\"reset\" value=\"Reset Fields\">\n");
print ("</form>\n");
print ("</div>");
}
?>
D4rkAng3l è offline   Rispondi citando il messaggio o parte di esso
Old 07-06-2004, 14:32   #2
Fenomeno85
Senior Member
 
L'Avatar di Fenomeno85
 
Iscritto dal: Jun 2002
Città: Provincia De VaRéSe ~ § ~ Lat.: 45° 51' 7" N Long.: 8° 50' 21" E ~§~ Magica Inter ~ § ~ Detto: A Chi Più Amiamo Meno Dire Sappiamo ~ § ~ ~ § ~ Hobby: Divertimento allo Stato Puro ~ § ~ ~ § ~ You Must Go Out ~ § ~
Messaggi: 8897
Allora non mi metto a toglierti il codice ma ti crei te la maschera che vuoi e poi utilizzi la funzione mail.

per la funzione mail guarda qui:

http://it.php.net/manual/it/ref.mail.php

Se hai problemi chiedi

MEMBRO DEL GRAN CONSIGLIO DELLE CACCOLE VERDI

~§~ Sempre E Solo Lei ~§~
__________________
Meglio essere protagonisti della propria tragedia che spettatori della propria vita
Si dovrebbe pensare più a far bene che a stare bene: e così si finirebbe anche a star meglio.
Non preoccuparti solo di essere migliore dei tuoi contemporanei o dei tuoi predecessori.Cerca solo di essere migliore di te stesso
Fenomeno85 è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


HONOR Magic 8 Pro: ecco il primo TOP del 2026! La recensione HONOR Magic 8 Pro: ecco il primo TOP del 2026! L...
Insta360 Link 2 Pro e 2C Pro: le webcam 4K che ti seguono, anche con gimbal integrata Insta360 Link 2 Pro e 2C Pro: le webcam 4K che t...
Motorola edge 70: lo smartphone ultrasottile che non rinuncia a batteria e concretezza Motorola edge 70: lo smartphone ultrasottile che...
Display, mini PC, periferiche e networking: le novità ASUS al CES 2026 Display, mini PC, periferiche e networking: le n...
Le novità ASUS per il 2026 nel settore dei PC desktop Le novità ASUS per il 2026 nel settore de...
DJI Osmo 360 in offerta su Amazon: video...
Canada: raggiunto accordo con la Cina, c...
500 terabyte di libri pirata per addestr...
Mandiant le pubblica rainbow table Net-N...
Robot aspirapolvere top di gamma al mini...
Changan prepara l'offensiva in Europa: 8...
Call of Duty rallenta: finisce l'era del...
Colossus 2 entra in funzione: il superco...
Ningtendo PXBOX 5: PS5, Xbox Series X e ...
Scossone in Ubisoft: il boss di The Divi...
Nuovo Media Creation Tool per Windows 11...
Animazioni credibili per ingannare gli u...
Hyundai mostra il camper elettrico STARI...
Qual è l'auto elettrica più...
Google amplia il controllo dell'utente s...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 14:40.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v