I am trying to allow the user to select either text or email (via radio input). When this is done, the page is to present a text box with either a 185 or 500 character limit, depending on the selection. This is my code so far:
Code: Select all
<HTML>
<HEAD>
<TITLE>SMS System</TITLE>
</HEAD>
<BODY>
<form method = "post">
How will you be sending your message?<br />
<input type = 'radio' name = 'method' value = 'text' checked = 'yes' /> Text to mobile
<input type = 'radio' name = 'method' value = 'email' /> Email
<br />
<br />
<br />
<?php
$selected_radio = $_POST['method'];
if($selected_radio == 'text'){
echo "Enter your message below:";
echo "<input type = 'text' id = 'message' name = 'message' maxlength = '185' />";
}
?>
</form>
</BODY>
</HTML>I have read up on several websites, and they all accomplish what I am trying to do using the same technique I am using. If anyone here could be of assistance, I would be most appreciative. Thanks so much!