Jump to content

chitchirya

Members
  • Posts

    52
  • Joined

  • Last visited

chitchirya's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Try this print "<p>Username is ".$txtUserName." and the password is ".$txtPassword."</p>"; Hope it helps.
  2. chitchirya

    Variable Issue!

    I tried you code above and it works perfectly. Do you have any other code in you db_getColumn.php? Just put this code in your db_getColumn.php with no other codes. <?php$merk = $_GET['d'];echo $merk;?> It's working fine. It alerts testing.
  3. chitchirya

    Variable Issue!

    Try to change this $result = mysql_query("SELECT IDmerken FROM merken WHERE Merk = '" . $merk . "'"); to $result = mysql_query("SELECT IDmerken FROM merken WHERE Merk = '$merk'"); Tell me if it works.
  4. chitchirya

    Variable Issue!

    With this code, xmlhttp.open('GET', "db_getColumn.php?d=" + merk + "'", true);For what is that bold for?
  5. you don't need to put double quotes when your are displaying the content of a variable.just type echo $news;
  6. $result = mysql_query("SELECT * FROM char ORDER BY DESC"); How do you order your selection? ORDER BY?
  7. Solved. Thanks for the help. I just lack quotes from my code. Lol! Well thanks again for helping.
  8. Typo error. It's $_GET['sname']; It's right on my code. It prints Array ( [sname] => Sample1) <--Without spaces.It prints nothing and does not have error <--With spaces. It shows http://localhost/SCa...name=Sample%203 Edit: When I click the link above it shows Array ( [sname] => Sample 3 ).This is right. But how come it does not read when I echo $_GET >,<
  9. I tried this on my javascript sname = encodeURIComponent(sname); I'm alerting it and it shows the %20 for my whitespaces. This is how I pass it. xmlhttp3.open("GET","info.php?sname="+sname,true); This is how I get it. My sname do have spaces so it make all spaces into %20 but then, when I try to get and echo the sname it shows nothing. $sname = $_GET['sname']; I see on the other site saying "The superglobals $_GET and $_REQUEST are already decoded." but why when I try echo $_GET['name']; it shows nothing...
  10. So I need to encode it in javascript and decode it in php?
  11. Oh.. I now get it. But another problem occurred. It is possible for javascript to pass a variable who's value has whitespaces?I didn't seem to work when I use this code xmlhttp3.open("GET","info.php?sname="+sname,true);
  12. I have this code: <select name=".addslashes($result['skill_name'])." onChange='showRlvl(this.value,this.name); showPoint(this.value,this.name)'> My problem is, every time I alert the this.name under showRlvl function, it does not include the whitespaces of my select name.For example my select name is abc d. It will only alert abc. But when it comes with an underscore, it does read it.As you can see on the above code, I add addslashes but still don't work. How can I pass it? Can anyone help me with this? Thanks and God bless!
  13. For search, you can use this. <!---for textbox --><input type="text" name="txtSearch"><!---for search button --><input type="button" value="Search" name="Search"> On the upper part of your page, put this code <?phpif(isset($_POST['Search'])){ $product = stripslashes($_POST['txtSearch']); if($product == ""){ header("Location:search.php"); } else{ session_start(); $_SESSION['Search'] = $product; header("Location:search.php"); }}?> Then put this code on the upper part of your search page to get the value you have passed. <?phpsession_start();$search = $_SESSION['Search'];?> Lol, that's what my small mind can do. Maybe long and tricky but that is what I do it. Lol! Hope it helps =)
  14. I'm really glad. Truly a simple code in javascript >,< I'm glad I learned. Thank you Mr. Ingolme, your so kind, nice and intelligent. I come up with this code. inputs = {};function showPoint(value,name){inputs[name] = value;total = 0;for(var abc in inputs) { total += Number(inputs[abc]);} I'm so happy I already got it on my own. Anyway thanks for the help and the codes everyone had posted in this thread espescially for Mr. Ingolme. I got the logic behind my problem because of him. He is awake even on nights till dawn, lol! =). Truly this forum helps a lot of people. God bless all, more power, Have a nice day and learn a lot! =)
×
×
  • Create New...