How can i get the selected radio input type value in a php script and direct it to a different directory to retrieve the files selected. I tried writing the code, but couldn’t write it properly since i m a newbie in the world of php.
The code i have written for displaying radio button is
<input type="radio" name="radio<?php echo $orderby1[0]; ?>"
id="<?php echo $orderby1[0]; ?>" value="<?php echo $orderby1[0]; ?>"
/><?php echo $orderby1[0]; ?>
Now how to get the selected values from it and direct it to the directory contains the file?
The code i have written is , which doesn’t seems to work
<script type="text/javascript">
var element = document.getElementById("<?php echo $orderby1[0]; ?>");
jmolApplet(400, "load /jmol/'element.value'.txt");
</script>
I don’t want to include any for loops… that makes my script work differently.
Please help!
You would use a
$_REQUESTmethod within a form, something like: