Search the Community
Showing results for tags 'need help'.
-
<script type="text/javascript"> function listBoxSearch(){ var input = document.getElementById('searchBox'), output = document.getElementById('listBoxF'); if(input.value != ''){ for (var i = 0; i < output.options.length; i++){ if(output.options[i].text.substring(0, input.value.length).toUpperCase() == input.value.toUpperCase()){ output.options[output.options.length] = new Option(output.options[i].innerHTML, output.options[i].text); } } if (output.options.length == 1) { output.selectedIndex = 0; } } } </script> It dosen`t work. It should work like this[DEMO in attached filed] listbox_with_keybord_search.htm
- 2 replies
-
- javascript
- function
-
(and 3 more)
Tagged with:
-
<?php // Create connection $txtstudentid; $con=mysql_connect("localhost:3306","root","") or die( mysql_error()); if(!mysql_select_db("db1", $con)); $result=mysql_query("SELECT * FROM tblstudent where studentid='". $_txtstudentid ."'"); echo "<table border=1> <tr> <td colspan=3 align=center> Student Records </td> </tr> <tr> <td> Student ID </td> <td> Firstname </td> <td> Lastname </td> </td> "; while($row=mysql_fetch_array($result)) { $studnum=$row['studentid']; $fname=$row['firstname']; $lname=$row['lastname']; echo "<tr> <td> $studnum </td> <td> $fname </td> <td> $lname </td> </tr>"; } echo "</table>"; ?>
-
Hello, i have a problem in developing a secure file upload/download system using php, whereby in this code, there is no restriction in choosing any file type, but there is restriction on file size. and the file info will be stored in the database. Problem # i'm stucked in creating a upload form whereby there is an message box popped out saying "there is an error due to no file selected" when i click on the upload button without selecting any file # need help in setting the file size below 3MB whereby if i upload file more than 3MB there will be a message box popped out saying "maximum file size!" instead of showing Undefined index: on top of the browser Here are the code in uploadaction.php here are the form in download.php * the form is on download.php whereby it will refer to uploadaction.php to do the upload i've tried to find code from other sources but it didnt help, would love if javascript coding can be added to improve this coding. Thank you so much~