Well, I want to know how to make the radio buttons which I made in the bellow form be in the message of the contact form, which will visitors press send to my email
what to add exactly
everything is okay except the radio buttons :’(
@I’m Noob in php btw.
[php]
<?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?><form action="" method="POST" enctype="multipart/form-data">
<input type="hidden" name="action" value="submit">
إسمك:<br>
<input name="name" type="text" value="أكتب أسمك هنا" size="30"/><br>
بريدك لإلكتروني:<br>
<input name="email" type="text" value="أكتب إيميلك هنا" size="30"/><br>
رقم هاتفك للتواصل واي معلومات اخرى تريد إضافتها:<br>
<textarea name="message" rows="9" cols="40"></textarea><br>
اختر نوع السيرفر ومدته:
(نيوكامد 3 شهور (جزيرة و ارتي بـ 30 جنيه مصري :(سيسكام 3 شهور (بـ 50 جنيه مصري :
(النيوكامد 6 شهور (نايل سات بـ 60 جنيه مصري:
(السيسكام 6 شهور (نايل سات وهوتبيرد بـ 80 جنيه مصري:
السيسكام شامل كل الأقمار بـ 100 جنيه مصري:
(سيسكام 3 شهور (نايل سات + هوتبيرد بـ 40 جنيه مصري:
<input type="submit" value="إرسال"/>
<input type="reset" value="مسح الكل"/>
</form>
<?php
}
else /* send the submitted data */
{
$name=$_POST[‘name’];
$email=$_POST[‘email’];
$message=$_POST[‘message’];
if (($name=="")||($email=="")||($message==""))
{
echo "All fields are required, please fill <a href=\"\">the form</a> again.";
}
else{
$from="From: $name<$email>\r\nReturn-path: $email";
$subject="prince for ever";
mail("[email protected]", $subject, $message, $from);
echo "Email sent!";
}
}
?> [/php]
–Edited To Fix Formatting