User Profile

Collapse

Profile Sidebar

Collapse
arizal
arizal
Last Activity: Jan 9 '08, 02:00 PM
Joined: Feb 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • arizal
    started a topic Problem using Jscript Object getElementById

    Problem using Jscript Object getElementById

    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]...
    See more | Go to post

  • arizal
    started a topic Deleting multiple Rows Using Checkbox
    in PHP

    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))
    {
    ...
    See more | Go to post

  • arizal
    started a topic Delete With CheckBox POST
    in PHP

    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...
    See more | Go to post

  • arizal
    replied to php 5.2 $submit action no working...
    in PHP
    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
    See more | Go to post

    Leave a comment:


  • arizal
    started a topic Securing the Web Folder
    in PHP

    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...
    See more | Go to post

  • arizal
    replied to How to Enable SSL in Login page
    in PHP
    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..
    See more | Go to post

    Leave a comment:


  • arizal
    started a topic How to Enable SSL in Login page
    in PHP

    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...
    See more | Go to post

  • arizal
    started a topic Problem With Log in and Log Out using Session
    in PHP

    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']), '/\\');...
    See more | Go to post

  • arizal
    replied to Problem with textarea
    Thanks Aric ,
    i will try that and see if that helps
    See more | Go to post

    Leave a comment:


  • arizal
    replied to Problem with Sessions when Log in and Log out
    in PHP
    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 time
    See more | Go to post

    Leave a comment:


  • arizal
    replied to Problem with Sessions when Log in and Log out
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • arizal
    started a topic Problem with Sessions when Log in and Log out
    in PHP

    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...
    See more | Go to post

  • arizal
    replied to Problem with textarea
    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..
    Thanks
    See more | Go to post

    Leave a comment:


  • arizal
    started a topic Problem with textarea

    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"...
    See more | Go to post

  • arizal
    replied to Passing the Value to other page using ahref
    in PHP
    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.
    See more | Go to post

    Leave a comment:


  • arizal
    replied to Passing the Value to other page using ahref
    in PHP
    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 ,...
    See more | Go to post

    Leave a comment:


  • arizal
    replied to Passing the Value to other page using ahref
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • arizal
    started a topic Passing the Value to other page using ahref
    in PHP

    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...
    See more | Go to post

  • arizal
    replied to Problem with Redirect in PHP
    in PHP
    THank you very much ...i Fix the problem.. :-)...
    See more | Go to post

    Leave a comment:


  • arizal
    replied to Problem with Redirect in PHP
    in PHP
    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...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...