I made some javascript code to view the text inside input text. When I click on the submit with this code:
alert("The field contains the text: " + frm.find.value)
This works, so I want use this part from javascript in php "frm.find.value"
for example: I'll write the wrong code as i used it:
$j='<script>+ frm.find.value<script/>';
$code = mysql_query("SELECT * FROM s_output WHERE name='$j'");
while($rowc = mysql_fetch_array($code))
{
$code=$rowc['code'];
}
echo $code;
This code for view code number using the name from database. i can use it with only php, but in my example I cant because I have an error with charset UTF-8, SO i just need use the code or numbers.
Thanks