hemo-ali
Members-
Posts
29 -
Joined
-
Last visited
Everything posted by hemo-ali
-
Nice I'm using this now example.com/profile?id=15 how can I use mod_rewrite
-
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?
-
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
-
Simple php form question - How to redirect to page after submit?
hemo-ali replied to emerson5000's topic in PHP Coding Help
Or js <form action="" method="" onsubmit="document.location='file.php';"> ......... .......... ............ ............. <input type=submit> </form> -
Why am i receiving blank emails from my contact form?
hemo-ali replied to queketth's topic in PHP Coding Help
Where is the check code if($name =="" || $email =="" || $telephone =="" || $type =="" ||$message =="" ){ echo"fill the fields"; } else{ mail(.....); } -
Why am i receiving blank emails from my contact form?
hemo-ali replied to queketth's topic in PHP Coding Help
You should check by js if the form filled or not -
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
-
php no should use js for showing or jquery
-
Code?
-
Ok but why don't you use margin
-
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????
-
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>
-
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>
-
trigger an action after a modaldialog closes?
hemo-ali replied to ginerjm's topic in Javascript Help
I am very sorry for the code above it is a mistake I am very sorry -
trigger an action after a modaldialog closes?
hemo-ali replied to ginerjm's topic in Javascript Help
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> -
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
-
Error message when I attempt to pass variables to another page
hemo-ali replied to drayarms's topic in PHP Coding Help
Try this code header("Location: search_results.php?friend='$row[member_id]'&me='$_SESSION[id]'&pic='$row[image]'&name='$row[username]'"); -
Sure we must see your code because the code above is very correct
-
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
-
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
-
Yes css is another solution but why html doesn't work the html code above is correct
-
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
-
For chat rooms you should using ajax
-
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??????????????