|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Aug 2000
Messaggi: 1209
|
[PHP] Estrarre piu' Item su un Form
Vorrei sapere se e' possibile creare uno script PHP che invia un form di contatti con la funzione mail() che invia qualsiasi campo creato all'interno del <form> campo1, campo2, campo3</form>.
solo che nell'e-mail che ricevo vorrei vedere pure il nome del campo, tipo: #Label# | #Valore del campo# Nome: Mario Cognome: Rossi Eta: 33 solo per il #Valore del campo# io faccio cosi: Codice:
<?
if($Ct="Invia"){
foreach($Campo as $campi){
echo"$campi<br>";
}
}
?>
<html>
<head>
<title></title>
</head>
<body>
<form action="<? echo $PHP_SELF; ?>" method="post">
<input type="hidden" name="Ct" value="Invia">
<input type="text" name="Campo[]"><br>
<input type="text" name="Campo[]"><br>
<input type="text" name="Campo[]"><br><br>
<input type="submit" value="Invia">
</form>
</body>
</html>
|
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Codice PHP:
|
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Aug 2000
Messaggi: 1209
|
Funziona grazie mille!!!!!!!!!
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 10:36.



















