Ciao gente,
premettendo che di programmazione non ne capisco un'acca vorrei sapere come:
- rendere necessario il riempimento di alcuni campi;
Il codice della pagina .php3 è il seguente:
<?
################################################## #############
# Script Title: 4CM_phpContact
# File: 4CM_phpContact.php3
# Description: This script will allow you to have a "Contact" form!
# Author: John B. Abela
# Email: support@4cm.com
# Web: http://www.4cm.com/
# Version: 2.0
#
# Copyright © 1996-2000 www.4cm.com. All Rights Reserved.
#
#
# www.4cm.com (4CM) offers no warranties on this script.
# The downloader of the script is solely responsible for any
# problems caused by the installation of the script or use
# of the script, including possible legal action for the grabbing
# of the data, as a result of this script!
#
# All copyright notices regarding: www.4cm.com
# MUST remain intact in the scripts and in the HTML of the scripts.
#
# For more info on this script, see:
# http://www.4cm.com/
#
# (Please be kind and sign my guestbook at:
# http://www.4cm.com/guestbook/ and say your using
# this script!!)
################################################## #############
?>
<?
// - First, we need to set few Variables to handle all the dirty work!
$SiteName = "www.iagora.it";
$SiteEmail = "cicciofarmaco@tiscali.it";
$ThankYouMessage = "Grazie da www.iagora.it";
$SiteUserName = "Lo Staff";
// - That's it! That's All You Need To Do!!
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> <?php echo $SiteName?> - Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>
<BODY BGCOLOR="#f6f6f6" text="#666666">
<center>
<CENTER>
<font face="Verdana,Arial" size="1">[B]Ciao e grazie per esserti registrato nel nostro sito!
Ti e' stata inviata un'email di conferma al tuo indirizzo email</font>.
</CENTER>
<?
$UserMessage = "$UserName, grazie per esserti registrato su $SiteName.\n";
$UserMessage .= "Il tuo indirizzo di posta elettronica verrà inserito nel nostra database.\n";
$UserMessage .= "Periodicamente riceverai la nostra newsletter.\n";
$UserMessage .= "Per ogni ulteriore informazione puoi contattarci all'indirizzo: $SiteEmail\n\n";
$UserMessage .= "$SiteUserName\n $SiteName Administration \n $SiteEmail";
mail("$UserEmail", "$ThankYouMessage", $UserMessage, "From: $SiteEmail");
$AdminMessage = "$UserName, Submitted the following Information:\n";
$AdminMessage .= "Cognome: $UserSurname\n";
$AdminMessage .= "Nato/a il giorno: $UserNatoilgiorno\n";
$AdminMessage .= "Nato/a il mese: $UserNatoilmese\n";
$AdminMessage .= "Nato/a l'anno: $UserNatolanno\n";
$AdminMessage .= "Sesso: $UserSesso\n";
$AdminMessage .= "Cittadinanza: $UserCittadinanza\n";
$AdminMessage .= "Codice Fiscale: $UserCodicefiscale\n";
$AdminMessage .= "Stato: $UserStato\n";
$AdminMessage .= "Città: $UserCitta\n";
$AdminMessage .= "Provincia: $UserProvincia\n";
$AdminMessage .= "CAP: $UserCAP\n";
$AdminMessage .= "Via: $UserVia\n";
$AdminMessage .= "N.: $UserNum\n";
$AdminMessage .= "Tel.: $UserTel\n";
$AdminMessage .= "Fax: $UserFax\n";
$AdminMessage .= "Cell: $UserCell\n";
$AdminMessage .= "Email: $UserEmail\n";
$AdminMessage .= "Passaporto: $UserPassaporto\n";
$AdminMessage .= "Msn: $UserMsn\n";
$AdminMessage .= "Skype: $UserSkype\n";
$AdminMessage .= "Area geografica che si vuole rappresentare: $UserAreageografica\n";
$AdminMessage .= "Come sei venuto a conoscenza: $UserConoscenza\n";
$AdminMessage .= "Universita': $UserUniv\n";
$AdminMessage .= "Facolta': $UserFac\n";
$AdminMessage .= "Writing: $UserWriting\n";
$AdminMessage .= "Speaking: $UserSpeaking";
$AdminMessage .= "Listening: $UserListening\n";
$AdminMessage .= "Certificazioni lingua inglese: $UserCertificazioni\n";
$AdminMessage .= "Curriculum Vitae: $UserCV\n";
$AdminMessage .= "$HTTP_USER_AGENT\n";
mail("$SiteEmail", "$SiteName - Contact Submission", $AdminMessage, "From: $UserEmail");
?>
</center>
</BODY>
</HTML>
Grazie in anticipo,
Francesco![]()