Solved

anchor tags not working

Posted on 2011-09-16
12
284 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:savsoft
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36553266
need more info.. share the live internet link or the code base which is not working
0
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 36553270
Please, post your code.
0
 

Author Comment

by:savsoft
ID: 36553273
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
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 40

Expert Comment

by:gurvinder372
ID: 36553290
which links are not working?
0
 

Author Comment

by:savsoft
ID: 36553295
Actually when i get login to my account then searched links are not working...is there any problem with sessions?
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36553345
I am able to click at the search link even in firefox 2.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 36554291
...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

0
 

Author Comment

by:savsoft
ID: 36558065
session working fine but anchor tag doesn't work after login
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36558416
please share the login credentials, so that i can login and see the problem
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 36559840
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
0
 

Accepted Solution

by:
savsoft earned 0 total points
ID: 36585477
That was due to hidden div which was overlaping ancher tag...
0
 

Author Closing Comment

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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question