Link to home
Start Free TrialLog in
Avatar of savsoft
savsoftFlag for India

asked on

anchor tags not working

I am using qnchor tags in that and sometime it works and sometime it is not working. I am not getting solution that y it is not working. Plz help me out that what is the problem
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

need more info.. share the live internet link or the code base which is not working
Please, post your code.
Avatar of savsoft

ASKER

We are developing a search engine but some links are not working.....

So just go through it

www.labbo22.com 

and search anything.......... Its working fine with IE but Not with XMPHTTP browser.. plz try and reply
which links are not working?
Avatar of savsoft

ASKER

Actually when i get login to my account then searched links are not working...is there any problem with sessions?
I am able to click at the search link even in firefox 2.
...is there any problem with sessions?

No, not if you use the PHP session handler correctly.  Here are the guidelines:

1. Put session_start() at the top of every page (this means unconditional execution as the first element of every script).

2. Add data to the $_SESSION array with assignment operators, like this:

    $_SESSION["cheese"] = 'Cheddar';

3. The $_SESSION array will be available and mutable in every scope and namespace.  This will be true whether or not you have used session_start().  But if you have not used session_start() the data you put into the $_SESSION array will not be there on the next page request.  This is a silent failure.  To avoid this problem, use session_start() right at the top.

In case you are not sure if your server's session handler is working correctly, you can run this little script to test it.
<?php // RAY_session_test.php
error_reporting(E_ALL);


// DEMONSTRATE HOW PHP SESSIONS WORK
// MAN PAGE HERE: http://php.net/manual/en/function.session-start.php


// START THE SESSION (DO THIS FIRST, UNCONDITIONALLY, IN EVERY PHP SCRIPT ON EVERY PAGE)
session_start();

// INITIALIZE THE SESSION ARRAY TO SET A DEFAULT VALUE
if (empty($_SESSION["cheese"])) $_SESSION["cheese"] = 1;

// SEE IF THE CORRECT SUBMIT BUTTON WAS CLICKED
if (isset($_POST['fred']))
{
    // ADD ONE TO THE CHEESE
    $_SESSION['cheese']++;
}

// RECOVER THE CURRENT VALUE FROM THE SESSION ARRAY
$cheese = $_SESSION['cheese'];


// END OF PROCESSING SCRIPT - CREATE THE FORM USING HEREDOC NOTATION
$form = <<<ENDFORM
<html>
<head>
<title>Session Test</title>
</head>
<body>
Currently, SESSION["cheese"] contains: $cheese<br/>
<form method="post">
<input type="submit" value="increment this cheese" name="fred"  />
<input type="submit" value="leave my cheese alone" name="john" />
</form>
</body>
</html>
ENDFORM;

echo $form;

Open in new window

Avatar of savsoft

ASKER

session working fine but anchor tag doesn't work after login
please share the login credentials, so that i can login and see the problem
session working fine but anchor tag doesn't work after login

This is not enough information for us to help in any way at all.  The question might as well be, "my plant won't grow."  And we do not know what kind of plant, whether it is in the soil, whether it has been watered, or frozen, etc...

To help you we will need to see your data, your program code and your test cases.  Please post those things here.  Thanks, ~Ray
ASKER CERTIFIED SOLUTION
Avatar of savsoft
savsoft
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of savsoft

ASKER

We found reason behind my problem outside experts-exchange so i provide information and closing by accepting my comment as answer