Jump to content

jemz

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by jemz

  1. Hi, Thank you for this, Okay i will make a try and i will write back to you if i get in trouble.thank you so much
  2. Is that a timer after the green box show in a couple of seconds,the form login will display?
  3. jemz

    picture

    Hi, how can i put picture when the user is loggin in?just like in other forum or facebook,when we loggin into our account it will display a picture. ex: Welcome imagehere Joe can you help me please how can i make something like this. Thank you in advance.
  4. Hi, i just want to ask on how can i make like the sign-in in the w3school forum, when we click the sign it will show the small box colored green and then it will display the login form,is it okay to ask on this ?i just want to learn how.I hope you can help me. Thank you in advance.
  5. jemz

    Menu(php)

    Hi, okay i will try this and i will let you know if it is working...
  6. jemz

    Menu(php)

    Hi, I am back about the menu in associative array. Okay how can i do this to show something like this in the URL example. index.php?fpage=home how can i do that. Thank you in advance.
  7. jemz

    Sending Message

    @Ingolme,Okey thank you for this link,i will write again to you if i have problem.
  8. jemz

    Sending Message

    Hi, Can i ask some idea on how to do this,i want that if someone will registered to my website it will send message or confirmaton to there email..can you help me please how to do this.
  9. jemz

    Select option

    Is it possible also in this select example inside the select option cat orchid mouse Karl Jupiter if the user will select the cat it will display to the texfield "Animal" and if the user will select Ochid it will Display to the textfield "plant" is this possible?
  10. jemz

    Select option

    Hi,it's working where did you learn this kind of coding i mean the way you do in your echo?Thank you so much it helps me.
  11. jemz

    Select option

    Hi,can you help me please on this i am stuck in this,i could not select the day.Thank you in advance.<select name="day" > <?php for($d=1;$d<=31;$d++) echo '<option f($day==$d) selected='selected'>'.$d.'</option>'; ?> </select>
  12. jemz

    Select option

    Hi sorry for the late reply.Thank you so much it's working.you are very great.
  13. jemz

    Select option

    Hi,thank you for the quick reply,is this what you mean?<select name="status" > <option value="<?php echo $status; ?>" selected="selected"></option> <option value="Active">Active</option> <option value="Inactive">Inactive</option></select>
  14. jemz

    Select option

    How do i set value in my select option, and i want this value is from the database. I tried this but it's not working <select name="status" value="<?php echo $status; ?>"> <option value=""></option> <option value="Active">Active</option> <option value="Inactive">Inactive</option></select> Can you help me on this.Thank you.
  15. Hi, I need some help,can i use input type="button" when deleting data in my database, Okay,this is how i made my code,i displayed all the records in the database using the Table,and i am using PDO.what i want is to click the delete button and this will redirect to the goDelete.phpand my problem in goDelete.php is i cannot displayed the idno and the name.Can you help me on this.Thank you in advance. while($fld = $count->fetch(PDO::FETCH_OBJ)) { ...... echo '<td>'.$fld->idno.'</td>'; echo '<td>'.$fld->Name.'</td>'; echo '<td><input type="button" name="delete" value="Delete" onclick="delete()"> </input></td>';} my script function delete(){ window.location.href="goDelete.php";}
  16. jemz

    Menu(php)

    Hi,Thank you don't worry i am not kind of man asking help without coding,actually i made the code now.and also i am reading other tutorial.thank you again and i will write again to you if i have doubt.
  17. jemz

    Menu(php)

    Okay,thank you for the reply,so how can i get to other page in this array?for example in about.php ,can i use isset()?
  18. jemz

    Menu(php)

    Hi,Thank you for this,yes this is it what i am looking for so how can i access the about.php using this array,is this an efficient way to use?
  19. jemz

    Menu(php)

    @birbal,i want to create menu using php,when i am going to click the about me i will go to the about me page,but i want my menu to be array is this possible to do in php?
  20. jemz

    Menu(php)

    Hi, can i ask is it possible to use php array in my simple menu?Can you give me some pointers what should i do so that i can have idea. Home || pictures || about me
  21. Hi thank you for enligthen my mind... :Happy:
  22. Hi, Thank you for the quick reply...It's working thank you so much for helping me you are great!...can i ask?why is that in the url only testajax.php can be seen...i thouht it would be something like this testajax.php?name=name&email=email&address=address or encoded url because i use the encodeURIComponent.Once again Thank you.!
  23. Hi, I need some help please on this ajax,and i am still beginner on this.I created a simple page as my practice using ajax enabled.my problem is that it will not insert into my table.can you help me please what is the problem of my code. testajax.php <html><head> <script type="text/javascript"> function InsertDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById('display').innerHTML=xmlhttp.responseText; } } var name = encodeURI(document.getElementById('name').value); var email = encodeURI(document.getElementById('email').value); var address = encodeURI(document.getElementById('address').value); xmlhttp.open("GET","dbconn.php?name="+name+"&email="+email+"&address="+address,true); xmlhttp.send(); }</script></head> <body> <form > Name : <input type="text" id="name"> <br/> Email : <input type="text" id="email" > <br/> Address: <input type="text" id="address" > <br/><input type="submit" value="submit" onclick ="lnsertDoc();"> </form> <div id="display"></div> </body> </html> "dbconn.php" <?php $conn = mysql_connect('localhost','root',''); if(!$conn) { die("could not connect to localhost" .mysql_error());} mysql_select_db('dbajax',$conn); if (isset($_GET['name']) && isset($_GET['email']) && isset($_GET['address'])) { $name = $_GET['name']; $email = $_GET['email']; $address = $_GET['address']; $sql = "insert into ajaxTBl values('default', '$name', '$email', '$address')"; mysql_query($sql); echo "Successfully inserted"; } ?> Thank you in advance.
  24. jemz

    ajax?

    Thank you...
  25. jemz

    ajax?

    Hi, I will just ask if i am in the right forum for posting ajax to ask help. Thank you in advance.
×
×
  • Create New...