/    Sign up×
Community /Pin to ProfileBookmark

First Email Form

I am trying to do my first email form which I am not having much luck with.

I was hoping someone from here could tell me why mine isn’t working?

[B]PHP:[/B]

[CODE]<?php
$name = $_REQUEST[‘name’] ;
$salon = $_REQUEST[‘salon’] ;
$email = $_REQUEST[’email’] ;

mail( “[email protected]”, “Feedback Form Results”,
$message, “From: $email” );
header( “Location:http://hmemmah/vacancies/” );
?>[/CODE]

[B]HTML:[/B]

[CODE]<form method=”post” action=”/vacancies/sendmail.php”>

<table border=”0″ cellpadding=”0″ cellspacing=”0″ align=”center”>
<tr>
<td></td>
</tr>
<tr>
<td>
<label for=”name” style=”width:140px;”><p style=”color: #666; font-size: 13px” >Full Name:</p></label>
<input type=”text” name=”name” id=”name” value=”” maxlength=”” style=”width:200px;”>

<label style=”width:140px;” for=”salon”><p style=”color: #666; font-size: 13px” >Salon</p></label><select name=”salon” id=”salon”><option value=”Bath” selected>Bath</option><option value=”Brighton”>Brighton</option><option value=”Bromley”>Bromley</option><option value=”Chiswick”>Chiswick</option><option value=”Clapham”>Clapham</option><option value=”Clapham Junction”>Clapham Junction</option><option value=”Croydon”>Croydon</option><option value=”Epsom”>Epsom</option><option value=”East Sheen”>East Sheen</option><option value=”Fulham”>Fulham</option><option value=”Fulham Broadway”>Fulham Broadway</option><option value=”Guildford”>Guildford</option><option value=”Hammersmith”>Hammersmith</option><option value=”Mayfair”>Mayfair</option><option value=”Harrow”>Harrow</option><option value=”Kingston”>Kingston</option><option value=”Manchester”>Manchester</option><option value=”New Malden”>New Malden</option><option value=”Notting Hill”>Notting Hill</option><option value=”Paddington”>Paddington</option><option value=”Putney”>Putney</option><option value=”Raynes Park”>Raynes Park</option><option value=”Reading”>Reading</option><option value=”Richmond”>Richmond</option><option value=”Soho”>Soho</option><option value=”Staines”>Staines</option><option value=”Sutton”>Sutton</option><option value=”Surbiton”>Surbiton</option><option value=”Shepherds Bush”>Shepherds Bush</option><option value=”Teddington”>Teddington</option><option value=”Tunbridge Wells”>Tunbridge Wells</option><option value=”Twickenham”>Twickenham</option><option value=”Walton on Thames”>Walton on Thames</option><option value=”Wandsworth”>Wandsworth</option><option value=”Weybridge”>Weybridge</option><option value=”Wimbledon Broadway”>Wimbledon Broadway</option><option value=”Wimbledon Village”>Wimbledon Village</option><option value=”Woking”>Woking</option><option value=”Victoria London”>Victoria London</option></select>

<label for=”email” style=”width:140px;”><p style=”color: #666; font-size: 13px” >E-Mail Address:</p></label><input type=”text” name=”email” id=”email” value=”” maxlength=”” style=”width:200px;”><div style=”clear:left;height:20px;”> </div>

</td>
<tr>
<td align=”right”>
<!– YOU CAN MODIFY THE TEXT WITHIN VALUE=”” TO MODIFY YOUR BUTTON TEXT–>
<input type=”submit” value=” Submit “> <input type=”reset” value=” Reset “>
</td>
</tr>
</table>
</form> [/CODE]

Also the thank you page gose to vacancies/sendmail.php not the url i put in the header.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @hmhair spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...