/    Sign up×
Community /Pin to ProfileBookmark

my first phph program need help

I am new to php and at the very beginning stages….I am doing a feeback form for a friend :
HERE IS THE HTML CODE

<html>
<head>
<title>ciscos feedbackform</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>

<body bgcolor=”#FFFFFF” text=”#000000″>
<form method=”post” action=”sendmail.php”>
Name: <input name=”name” type=”text” /><br />
<br />
Age: <input name=”age” type=”text” /><br />
<br />
sex: <input name=”sex” type=”text” /><br />
<br />
Email: <input name=”email” type=”text” /><br />
<br />

<input type=”submit” />

<input type=”reset” name=”reset” value=”Reset”>
</form>
</body>
</html>

AND HERE IS THE PHP PROGRAM I WROTE

<?
$name = $_REQUEST[‘name’] ;
$age = $_
REQUEST[‘age’] ;
$sex = $_REQUEST[‘sex’] ;
$email = $_
REQUEST[’email’] ;

mail ( “[email protected]“, “Ciscos form results”,”$name, $age, $sex, $email”, “From: $email” ) ;
header( “Location: [url]http://www.ciscoscoffeeroasters.com.au/thankyou.htm[/url]” );
?>

when i get the results sent to me in my email it comes to my email like this:

name,age,sex,email

Is there away of having the results sent to my email with question’s that was asked and the answers instead of just the answers like above e.g

name = tane
age = 31
location = australia
email = [email][email protected][/email]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryJun 17.2003 — You should be able to change this line

mail ( "[email protected]", "Ciscos form results","$name, $age, $sex, $email", "From: $email" ) ;

to this

mail ( "[email protected]", "Ciscos form results","name = $namenage = $agensex = $sexnemail = $email", "From: $email" );

Adam
Copy linkTweet thisAlerts:
@pyroJun 17.2003 — You may want to use something more like the form processor in this thread: http://forums.webdeveloper.com/showthread.php?s=&threadid=9543
Copy linkTweet thisAlerts:
@taneauthorJun 18.2003 — excellent thanks guys
×

Success!

Help @tane 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.18,
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,
)...