Hello Frens,
I am having problem with the following Javascript using in IE. Firefox does not shows any problem and i have no idea where it went wrong in this code. It returns an error : Object required at the line
[CODE=javascript]
document.getEle mentById(curren thighlight).sty le.backgroundCo lor= "#ffffff";
[/CODE].
Any help would be appreciated.
[CODE=javascript]...
User Profile
Collapse
-
Problem using Jscript Object getElementById
-
Deleting multiple Rows Using Checkbox
Hi ,
I am trying to figure out why my PHP code to delete multiple value by selecting the checkbox is not working. My php code is listed as below
[PHP]
<?php
$sql = "Select * from list;";
$result=mysql_q uery($sql) or die ("<br> Could not Retrieve Data <br>");
$num_rows=mysql _num_rows($resu lt);
While ($row =mysql_fetch_ar ray($rs))
{
... -
Delete With CheckBox POST
Hi,
I am having some problem trying to think how to write a code for deleting the entry which is loaded from the database. I have a while loop which pulls the userID, name etc from the database and i have a checkbox next to each useriD. I also have a Delete button. SO what i want is when delete is clicked it will delete all items which are checked.
My code
[PHP]
<?php $a=0;
$i=0;
While ($row... -
Hi Miyagikarate,
I think what you need to do is replace ($submit) by
[PHP]
if ( $_POST['submit'] == "Enter information" ) {
......
}
[/PHP]
I am not sure but you can give it a try. Good Luck -
Securing the Web Folder
Hi,
I have a folder in a server where all my php files reside. I mean the whole content of the web site is in that folder. So the problem is that if someone knows the filename of any php file, they can directly open the file without login in . I know that there are couple of ways to avoid this. Like adding a line of code to check session at the start of each page. Or to make an .htaccess file.
I am aware of the first method which... -
Thanks Ronald,
i was not sure if i have to write some extra lines of code even after using a software for SSL on a server. I think i just need to configure in the server or add the URl of my page in the server to make it SSL enable..Leave a comment:
-
How to Enable SSL in Login page
Hi,
I have developed a login page using PHP that uses a LDAP authentication to login to the users panel. I use the funtion that was provided to me inorder to authenticate using LDAP. Now i want to make my login page SSL enable. I am using Apache server and My-sql server.. I have no idea where should i start from inorder to enable ssl. Do i need to write extra code in php to enable ssl or should i be doing somethig in server..
Does... -
Problem With Log in and Log Out using Session
Hi , I am having problem with log in and log out . I have a main login page where one can login with the username and password stored in mysql database.
[PHP]
<?php
session_start() ;
//ob_start();
require_once 'functions.php' ;
$UserName = $_POST['UserName'];
$Password = $_POST['Password'];
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($ _SERVER['PHP_SELF']), '/\\');... -
-
Hey thanks Atli,
i figured it out why it was not working fine...and now its working good....
Anyway thank you very much for yout timeLeave a comment:
-
My Log Out code is like below
[PHP]
<?php
session_start() ;
//store to test if they were logged in
$old_user = $_SESSION['userid'];
$_SESSION['loggedIn'] = false;
unset ($_SESSION['userid']);
session_destroy ();
?>
<html>
<body>
<h1>Logged out </h1>
<?php
if (!empty($old_us er))
{
echo 'Successfully...Leave a comment:
-
Problem with Sessions when Log in and Log out
Hi friends,
I am having some problem working with my script on session stuffs. Well, i have a login page which authenticates users by using sql script then if login is successful i have [PHP] $_SESSSION['logged in']=true; and $_SESSION[userid]=$userid [/PHP] and when login is true i have included the page based on the access level of users . Like if it is a regular user i have include "user.php" ; exit() and if admin i have included... -
I want to use a Javascript validation . But my current javascript does not checks for whitespace when i give parameters like input.text=="" or null.
I have no idea how to solve this. Does any one have any idea to fix this..
ThanksLeave a comment:
-
Problem with textarea
Hello friends,
I am having hard time working with text area on my html form. I dont know why but i am getting some extra space on my text area. So becuase of this reasom i am also not able to validate the empty text field. THere is nothing wrong with the code but i dont know why the text area is talking extra space inside of it when form loads
My code was initially like this [HTML] <textarea cols="55" rows="20"... -
Hey Ronald,
Thanks a lot for the details. I will try to see what i can do to make it more secure. I really appreciate your help.Leave a comment:
-
Hey thanks a lot Ronverdonk... I didnt knew about that i mean the GET problem. So inorder to protect people not to try with random userid What is the good idea to follow.. Or is there any alternative of Using $_GET. I am not much familier with security issues. So could you please enlighten me on this.
Thanks again ,...Leave a comment:
-
I think i just got the solution ... Its working now...
I used the href link as <a href='adminlogi n.php?mode=user _delete&userid= <?php echo $userid; ?>'>
and it worked...Leave a comment:
-
Passing the Value to other page using ahref
Hello everyone, i just saw the same thread below but was not able to get from it.
Well the problem is in the userlist page i have a list of users on the database which i get from simple sql queries. On the same page on the side of each User i have delete link. Also inside the while Loop that runs sql and prints User Names i have some variable say $userid = $row ["userid"] . But I am not sure how i am going to transfer this $userid... -
-
Hi Atli,
One more trouble,
When i use the Javascript to Redirect the page [PHP] echo "<script language='javas cript'> location.href=' $adminAddress'; </script>"; [/PHP]
Every thing is Fine it redirects me. But i dont know why i am not able to pass the Session Variable with that to the other page. Do you have any idea how can i still have a session maintained even if i use the above Javascript...Leave a comment:
No activity results to display
Show More
Leave a comment: