The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Mail form problem, Radio button not working
ApoMarn
post Feb 5 2018, 11:20 AM
Post #1





Group: Members
Posts: 6
Joined: 12-January 17
Member No.: 26,262



Can anyone tell me what I'm doing wrong here?

$email_message = .......
$email_message = "Medium: ".$medium."\r\n";
$email_message = .....

<FORM action="inspection_copies.php" method="post">
...
<p><input type="radio" name="medium" value="CD-ROM" checked> CD-ROM
<br><input type="radio" name="medium" value="USB drive"> USB drive
...
</FORM></b>

The rest of the form works perfectly but the radio button line sends only the title (Medium) without any value.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post Feb 9 2018, 05:04 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



We need to see the PHP code. How do you assign $medium? As Christian J pointed to you must be using '$medium = $_POST['medium']' or similar somewhere.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:41 AM