Tamam, bu yüzden php değişkenlerin çoğu e-posta benim formu var. Ancak, benim textarea değişkenler boş göstermek ve benim textarea "Array" olarak baskı girişler
İşte benim formdan bir parçası olduğunu:
<label for="ProgramAudience">Intended Audience:</label>
<span><input type="checkbox" name="ProgramAudience[]" value="AcademicAffairsFaculty" />Academic Affairs/Faculty</span>
<span><input type="checkbox" name="ProgramAudience[]" value="StudentAffairsDevelopment" />Student Affairs/Development</span>
<span><input type="checkbox" name="ProgramAudience[]" value="CommunityCollege" />Community College/2-Year Institutions</span>
<span><input type="checkbox" name="ProgramAudience[]" value="GraduateStudents" />Graduate Students</span>
<span><input type="checkbox" name="ProgramAudience[]" value="FourYearPublic" />Four-Year Public Institutions</span>
<span><input type="checkbox" name="ProgramAudience[]" value="FourYearPrivate" />Four-Year Private Institutions</span>
<label for="ExpectedOutcome">Expected Learning Outcomes:</label>
<label class="small">List 1-2 expected learning outcomes below. (As a result of attending this session, participants will...)</font></label>
<font size="1" face="arial, helvetica, sans-serif"> ( You may enter up to 400 characters. )<br>
<textarea name="message4" id="ExpectedOutcome" class="required" wrap="physical" rows="10" cols="35" onKeyDown="textCounter(this.form.message4,this.form.remLen,400);" onKeyUp="textCounter(this.form.message4,this.form.remLen,400);"></textarea>
Burada işlem dosyasının bir parçasıdır:
$ProgramAudience = $_POST['ProgramAudience'];
$ExpectedOutcome = $_POST['ExpectedOutcome'];
...
$Body = "";
$Body .= "ProgramAudience: ";
$Body .= $ProgramAudience;
$Body .= "\n";
$Body .= "ExpectedOutcome ";
$Body .= $ExpectedOutcome;
Bu e-postayla sonuç gibi görünüyor:
Gönderen:
To: me@me.net
Tarih: Thu, 15 Temmuz 2010 17:10:17 -0400
Konu: Öneri Gönderme
İsim: mil
Soyad: Beni
Başlık: Test
Kurum: test
EmailGönderen:me@me.net
Telefon: 8157531503
Adres: HSC 023A
Şehir: DeKalb
Eyalet: IL
Posta Kodu: 60115
CoPresenter: adam
ProgramTitle:
ProgramType: Dizi
ProgramDescription:
ProgramOutline:
ProgramTopic: Dizi
ProgramAudience: Dizi
ExpectedOutcome
Deneyim:
AVEquipment: