thx all,, all of my questions have been answered..
this thread can be closed..
Thx for everyone
User Profile
Collapse
-
lol,, so it's because of the magic quotes.. I see.. ^^
Now my question is,, do we still need to use mysql_real_esca pe_string?
Isn't magic quotes safe enough?Leave a comment:
-
Hmm.. I still can't do it..
...Code:<?php $mysql_host = "localhost"; $mysql_user = "root"; $mysql_pass = ""; $mysql_db = "kp"; $konek = mysql_connect($mysql_host,$mysql_user,$mysql_pass); if(!$konek) die(mysql_error()); $pilihdb = mysql_select_db($mysql_db,$konek); if(!$pilihdb) die(mysql_error()); $namatim
Leave a comment:
-
oughh,, the reason?
I'm just curious,, I've read some articles, if we want to secure our web from sql injection, we should use real escape string.. but, why do we need to use those if our web can't be injected..?Leave a comment:
-
sql injection on my own web server
i've installed xampp on my pc..
Can I do sql injection on my own web server? (I've read some articles & tried it but I couldn't do sql injection, dunno why)
Anyone can help me? -
hello,, I have same problem as panos100m..
can anyone help me?
how can we save the file using active x?
thank you very muchLeave a comment:
-
I just wondering if we can do that, but you're right,, we don't need to start a new session when we close a tab.., I'm sorry..
thank you guys..
this thread can be closed, my question has been answered..
special thanks for Ronald,Markus & "TheServant "Leave a comment:
-
I use the unset($_SESSION['ct']);
when the attempt is more than 10..
the problem is,, when I close the tab (login.php) and open it again,, the last $_SESSION['ct'] still remain..
where should I add unset($_SESSION['ct']); so that, the $_SESSION['ct'] will be cleared when I close the tab..
I've tried what markus said (when we close the browser, the $_SESSION['ct']) will be automatically cleared.., but when I close the tab...Leave a comment:
-
I'm sorry Ronald, maybe my question is not clear enough..
when we open a browser,, we can open a lot of tabs..
my question is,, is there any code so that, when we close the tab (login.php), the SESSION will be destroy.. (without close the browser)
thanx..Leave a comment:
-
thanks to all of you..
the $_SESSION work very well, here's my code..
[code=html]
<html>
<head>
<title>form</title>
</head>
<body>
<form action="login.p hp" method="post">
<table border=1>
<tr>
<td colspan=2>
Login
</td>
</tr>...Leave a comment:
-
thanks ronald..
now I'm reading about $_SESSION from w3school..
I hope it will solve the problem..
I'll give my report if I've try this..Leave a comment:
-
<input type="hidden" name="ct" value="0">
^
^
^
can we change the value="0" in form.html form login.php?
another idea that I got is by writing the counter to file.. (but I haven't learnt how to use file in php)
beside that, I haven't got any idea..
thanxLeave a comment:
-
thanks for you reply markus but I haven't learnt that far..
this is the first day study about php.. and the purpose of this is just for practice..
can we change the value of the input in html using php?
thanks..Leave a comment:
-
sorry I didn't write the code..
here's my code..
this is the form.html
[code=html]
<html>
<head>
<title>form</title>
</head>
<body>
<form action="login.p hp" method="post">
<table border=1>
<tr>
<td colspan=2>
Login
</td>
...Leave a comment:
-
several login attempts
hi i'm a newbie in php..
can you help me how to make several login attempt in php?
(if we put wrong password/username,, we will go back to the previous form and we can try 3 more attempts to input the correct password/username before appear an error message)
thanks before..
No activity results to display
Show More
Leave a comment: