Jump to content

hemo-ali

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by hemo-ali

  1. Nice I'm using this now example.com/profile?id=15 how can I use mod_rewrite
  2. Hey guys I've problem I want every member register to my site to see his profile at for example example.com/member how can I do that?
  3. explorer is very very stupid crazy bad ugly bowser you shouldn't try to do that on explorer Chrome,Firefox,Opera and Netscape are enough
  4. Or js <form action="" method="" onsubmit="document.location='file.php';"> ......... .......... ............ ............. <input type=submit> </form>
  5. Where is the check code if($name =="" || $email =="" || $telephone =="" || $type =="" ||$message =="" ){ echo"fill the fields"; } else{ mail(.....); }
  6. I have many members I display then it pages and next to everyone checkbox for delete but if i in page 1 and chose 2 persons then i went to page 2 the 2 persons I chose lost how can browser remember my checked ckeckboxes Should I use another language Or what
  7. php no should use js for showing or jquery
  8. As I understand you want to insert random numbers and don't want to duplicate this number if you want that you can check that number before insertng
  9. Ok but why don't you use margin
  10. First:- you should explain some things how and time and basic and questions you want Second:- Do you have any code and want helping or you are don't want to learn anything only want the quiz without any working if you want helping you wrote your topic in the correct place But: if you want to get it all you went the wrong place you should Google Php & Mysql quiz Free Script Now decide what you want exactly????
  11. I think it will help <script type="text/javascript" src="jquery.js"> </script> <script type="text/javascript"> window.onload = function() { var mySelect = document.getElementById('school2'); mySelect.onchange = function() { if (this.value == 'other') { document.getElementById('otherdiv').style.display = 'block'; } else { document.getElementById('otherdiv').style.display = 'none'; } } } </script> <select id="school2"> <option>1</option> <option>2</option> <option>other</option> </select> <div id="otherdiv" style="display: none;"> asd </div>
  12. this is the best <script type="text/javascript" src="jquery.js"> </script> <script type="text/javascript"> window.onload = function() { var mySelect = document.getElementById('school2'); mySelect.onchange = function() { if (this.value == 'other') { document.getElementById('otherdiv').style.display = 'block'; } else { document.getElementById('otherdiv').style.display = 'none'; } } } </script> <select id="school2"> <option>1</option> <option>2</option> <option>other</option> </select> <div id="otherdiv" style="display: none;"> asd </div>
  13. I am very sorry for the code above it is a mistake I am very sorry
  14. this works good <script type="text/javascript" src="jquery.js"> </script> <script type="text/javascript"> window.onload = function() { var mySelect = document.getElementById('school2'); mySelect.onchange = function() { if (this.value == 'other') { document.getElementById('otherdiv').style.display = 'block'; } else { document.getElementById('otherdiv').style.display = 'none'; } } } </script> <select id="school2"> <option>1</option> <option>2</option> <option>other</option> </select> <div id="otherdiv" style="display: none;"> asd </div>
  15. very easy this is the code <script src="jquery.js"></script> <script> $(document).ready(function(){ $(".schools").change(function(){ if($(".schools").val() == "Other.."){ $(".show").show("slow"); } }); }); </script> <select class="schools"> <option>Choose your school</option> <option>1</option> <option>2</option> <option>Other..</option> </select> <div class="show" style="display: none;"> <input type="text" name="name" id="name"> </div> **notice set your jquery path
  16. Try this code header("Location: search_results.php?friend='$row[member_id]'&me='$_SESSION[id]'&pic='$row[image]'&name='$row[username]'");
  17. Sure we must see your code because the code above is very correct
  18. WHAT DO YOU MEAN SERIAL NUMBER IF you mean serial n database for showing add a field in the DB but if you want to ask the user for serial number before he sees the results this will be different case
  19. Use this code <html> <head> <script type="text/javascript"> myImages=new Array(); myImages[0]="images/101010.jpg"; myImages[1]="images/131313.jpg"; myImages[2]="images/151515.jpg"; myImages[3]="images/u3.jpg"; myImages[4]="images/u4.jpg"; myImages[5]="images/151515.jpg"; imagecounter=myImages.length-1; i=0; function first() { document.getElementById('imageviewer').src=myImages[0]; i=0; } function previous() { if (i>0) { i--; document.getElementById('imageviewer').src=myImages[i]; } } function next() { if (i<imagecounter) { i++; document.getElementById('imageviewer').src=myImages[i]; } } function last() { document.getElementById('imageviewer').src=myImages[imagecounter]; i=imagecounter; } function change(str){ document.getElementById('imageviewer').src=myImages[str]; } </script> </head> <body> <center> <form> <input type="button" value="First" onclick="first()"> <input type="button" value="previous" onclick="previous()"> <input type="button" value="1" onclick="change(0)"> <input type="button" value="2" onclick="change(1)"> <input type="button" value="3" onclick="change(2)"> <input type="button" value="4" onclick="change(3)"> <input type="button" value="5" onclick="change(4)"> <input type="button" value="6" onclick="change(5)"> <input type="button" value="Next" onclick="next()"> <input type="button" value="Last" onclick="last()"> </form> <img id="imageviewer" src="images/101010.jpg" alt="w3Scools" width="100" height="30" /> </center> </body> </html> explaining:- if you will use 5 images only I made buttons by the numbers of the images then I made function named change(str) this function gets the str value and then use the array to change the image **notice you should change the images as you want
  20. Yes css is another solution but why html doesn't work the html code above is correct
  21. hemo-ali

    links

    if you do not want the guests see some part of the page you can see two codes <a href = "123.html#asd" onclick="document.getElementById("asd").style.display='block'">click here</a> then we will make the div wth id asd <div id="asd"> Hi there </div> I hope it helps
  22. For chat rooms you should using ajax
  23. ok I can explain what he wants he wants to upload image from a form then let's say the image name is 123.jpg he wants to make page names 123.php immediately(automatic) how can he do that??????????????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.