Jump to content

johny20

Members
  • Content Count

    17
  • Joined

  • Last visited

Community Reputation

0 Neutral

About johny20

  • Rank
    Newbie

Profile Information

  • Location
    Alps
  1. OK, so the main page looks like this (I put the scripts two times) : <!DOCTYPE html><html class="no-js"><title>Animals</title> <link rel="stylesheet" href="scripts/jquery.rondell.css" type="text/css" media="all" title="Screen"><script><script src="scripts/jquery-1.9.1.min.js"></script><script>$(function(){//$('h4').live('click', function(){ // jQuery 1.3+//$(document).delegate( 'h4','click', function(){ // jQuery 1.4.3+$(document).on( 'click','h4', function(){ // jQuery 1.7+ alert($(this).html())});});</script><script src="scr
  2. OK, now I got what you mean! the main page will have all of the CSS and JSs and the second page will have only the above code.
  3. Hi again. Thanks so much that help me. OK, look what I did (main/first) page: <html><head><title>Animals</title><script src="scripts/jquery-1.9.1.min.js"></script><script src="scripts/modernizr-2.0.6.min.js"></script><script>$(function(){//$('h4').live('click', function(){ // jQuery 1.3+//$(document).delegate( 'h4','click', function(){ // jQuery 1.4.3+$(document).on( 'click','h4', function(){ // jQuery 1.7+ alert($(this).html())});});</script> <link rel="stylesheet" href="scripts/jquery.rondell.css" type="text/css" media="all
  4. Hi, thanks for the reply. I linked the jQuery inside my main file : <script src="scripts/jquery-1.9.1.min.js"></script> then I changed the click() to live(), but I thought that this has to do with the prev/next buttons at the image viewer. Nothing worked again... Yes, I want to retrieve that specific <div> and I can't understand why since it works on the second page, it can't work on the main one..
  5. Hi, I have two pages. The first page has two links, when a user clicks on one of them then s/he can view some information. I have used an image viewer taken from http://projects.sebastianhelzle.net/jquery.rondell/examples/carousel.html and I have set it according to my needs. the code of the first/main page is: <html><head><title>Animals</title><script>function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { document.getElementById("rondellCa
  6. Hello, I can't get data from mysql when I put Greek characters in SELECT statement. require_once(dirname(__FILE__).'etc etc etc etc');$mysqli->query("utf8_general_ci"); // I have tried "UTF8" - Didn't work$query = "SELECT * FROM graf WHERE onoma LIKE 'ΓΕ%' ";$mysqli->query("SET CHARACTER SET 'utf8_general_ci'");$result = mysqli_query($mysqli,$query);if ($result !=0){ while ($row = mysqli_fetch_assoc($result)) { echo $row['onoma']; } }echo mysqli_error($mysqli); //gives no errorecho mysqli_sqlstate($mysqli); //gives 00000 which means the statement is correct Also, in MySQL the c
  7. hotmail, gmail etc get the email as I described... Well, I have no clue about how to do that. Maybe, I will send email to my service provider for further assistance. Thank you for the reply.
  8. I use the email() function in order to send emails to the users of my system. The problem is that when they receive the email, they see something like this: myUserName@the_servername.com [myUsername@the_servername.com] on behalf of Web Master [webmaster@mydomain.com]myUsername is the username I use to log-in on Cpanel! How I can avoid all these and keep only the part after the "on behalf"? the code I have so far: $message = "mplampla";$headers = 'Bcc:' .$email. "\r\n";$headers .= 'From: Web Master <webmaster@mydomain>'."\r\n"; //I want only thismail('',"Invitation",$message,"$headers")
  9. johny20

    if, else if, else

    So, what would you like to implement? The $pass1 value to be not empty AND different from $pass2 value AND with more than 20 characters AT THE SAME TIME? Or you need to check them individualy?(sorry for caps but I want to point the difference tha will help in development). if you want them simultaneously then you should do something like this: if (($pass1=="") && ($pass1!=$pass2) && (strlen($pass1) > 20)) echo "ERROR!"; Another way is to use the 'if' and 'elseif': if ($pass1=="") {echo "Empty field";} elseif ($pass1 != $pass2) {$updatmsg = '<font color="#FF0000" size
  10. johny20

    PHP Email Form

    I don't know if you resolved that, but have a look at what I did in order to send mail using PHP. $message = "blablabla"; // I hardcoded the message, you can allow user to specify it.$headers = 'Bcc:' .$email. "\r\n"; //$email is the email you would like to send the message($message)$headers .= 'From: webmaster@rottingchristforever.com'."\r\n";mail('',"Invitation",$message,"$headers"); And now the problems are starting! Hotmail will place the email that you sent in the Junk folder! I don't know about gmail or yahoo but they probably do the same. Only my university's account (we use outlook.
  11. Yes and No. I did it before 2 minutes. It goes to delete.php and since the user hasn't specified any ID then it can't delete any entry. It is not the best behaviour but at least it works for me! The following code might resolves that issue:function test(){ if(document.pressed == 'Edit') { document.testform.action ="../edit.php"; return true; } else if (document.pressed == 'Delete'){document.testform.action = "delete.php";return true;} else { return false;}}
  12. Sorry for the late reply but I didn't receive notifications about your replies..I resolved the problem by using Javascript as mentioned by Obi1 . Also, justsomeguy's post seems to be correct but, in my case, I don't like to use 1000 web pages.Scenario: We have stored some values in Mysql and then we present the values to user. On the same page we have some additional options like 'Delete the entry' or 'Edit the entry'. According to the will of the user we have to POST the data to the delete.php OR to the edit.php to perform the operation. <html><head><script type="text/javascr
  13. Hello!I have a form with a textbox. All I want to do is to post the data to a page according to which button was clicked.Suppose that I ask for the user to input an ID. Then there are two buttons: Edit and Delete. The edit button must send the ID to the edit.php and the delete button to the delete.php. <form method = "post" action ="?"><input type = "text" id = "ID" /><input type = "submit" value = "Edit" onClick="window.location=''edit.php"/><input type = "submit" value = "Edit" onClick="window.location=''delete.php"/> Well, I know it doesn't work but I want one form
  14. Redefinition of the problem! I checked my application on Windows XP with Mozilla 5.0 (firefox/2.0.0.2). I didn't experience any problem at all! When I run it on Linux or Windows XP with Mozilla 5.0 firefox canonical for Ubuntu - 1 and Mozilla 5.0.1 respectively, I face the problem. It seems that there is an issue with the last version then... ANW, thank you again!
  15. Thank you guys for your guidance. I 'll be back, in about a month, cause I have to continue the development of other aspects of that chat application.Summary: I 'll try the asynchronous approach, I will move the CSS in an external file and I will do this "true think" (I didn't understand it actually!) with the keyboard input.Also, I forgot to mention that I didn't receive any error in Mozilla's error console.
×
×
  • Create New...