electron
Dec 1 2006, 05:34 PM
| | Hi,
I am using the header function to redirect after the processing of the form. I have to specify a internal link using '#link'.
This works in Firefox and opera. But in Internet Explorer internal linking when done from a redirect is not working for somewhat reasons.
e.g. header("Location: http://www.example.com/index.php#link");
this works in Firefox and Opera but not in Internet Explorer . IE just accepts 'http://www.example.com/index.php' instead of http://www.example.com/index.php#link
Please help me if you know anything about this. Well there might be a issue in Internet Explorer 7 and i dont have Internet Explorer 6. If you know of such bugs in Internet Explorer 7 or any such bugs in PHP let me know.
Thanks and have a good day. |
Reply
shadowx
Dec 1 2006, 10:27 PM
that's strange, it probably is an error in IE7 if it works in other browsers, if theres any way of putinng the code online i, or someone else can test it in IE6, FF opera etc as well and see if we get errors too. You using the #link to focus the browser on a specific part of the page right? in which case i would definately say its a browser based problem not a code based one.
Reply
biscuitrat
Dec 3 2006, 05:06 AM
You were doing this, right?: CODE <a href="http://www.example.com#link">This is anchor text</a> <a id(or name)="link"></a> This is the text at the beginning of a paragraph
Please post your code so we can check it!
Reply
detportal
Dec 3 2006, 09:13 AM
Isn't there something you can do on the cPanel, assuming you are hosted on trap17? They have something you can do to manage redirects, though I'm not sure if you can configure it to activate after you process a form. And I agree with the previous poster, you should paste your code here so we can have a look at it.
Reply
Spectre
Jan 9 2007, 05:14 PM
This has nothing to do with cPanel or with linking. And he did post his code. I've never encountered this problem as such, electron, but when I did a little experimenting with it I got some interesting results. Some of the time it would work fine for me and do exactly what it was supposed to - but other times there was some unusual behavior by the browser, including displaying the incorrect URL in the address box, displaying the correct URL but without the fragment, and displaying the fragment but not scrolling to it. As you said it works fine in Opera and FireFox, so perhaps it's connected to a bug in IE7 that hasn't been ironed out yet?
Reply
coby
Feb 18 2007, 04:02 AM
I've also encountered this problem as such, electron, but when I did a little experimenting with it I got some interesting results. Some of the time it would work fine for me and do exactly what it was supposed to - but other times there was some unusual behavior by the browser, including displaying the incorrect URL in the address box, displaying the correct URL but without the fragment, and displaying the fragment but not scrolling to it. As you said it works fine in Opera and FireFox, please use this code in your php code, it's worked fine with me echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"1; url=".$PHP_SELF."#link\">"; coby
Reply
Similar Topics
Keywords : header, redirect, errors
- Cannot Redirect Audio Output To Bluetooth Headset
Using an Ericsson HBH-60 with a Sprint PPC6700 (2)
Flash Header Edit?
flash header edit (2) Can someone help me edit a flash header from a template. I can figure out MX 2004. I am a novice web
designer at best and need some help editing this header. Thanks so much ....
Is The Database System Gone Again? [resolved]
Errors on PHPMyAdmin again (12) I wonder if there is a problem with the PHPMyAdmin system again? When trying to get into it, I once
again get the following: QUOTE Warning: session_write_close() : SQLite: session write query
failed: database is full in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42
Warning: session_write_close() : Failed to write session data (sqlite). Please verify that the
current setting of session.save_path is correct
(/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb) in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning: Ca....
Redirect If Not Using Firefox
(4) Basically i want a code to redirect people to a different page if they're using anything but
firefox, there are codes for it but i cant find 1. If anyone can give me a hand it would be
appreciated!!!....
Fopen Errors :(
grrr, i'm angry :( (6) Okay, i've made a very, very simple PHP counter for my site, i've set up all the permissions
and everything (triple checked permissions are right); CODE <?php $hits =
file_get_contents("/home/tracdoor/public_html/hitcounter.txt"); $hits =
$hits + 1; $handle = fopen("hitcounter.txt", "w");
fwrite($handle, $hits); fclose($handle); print $hits;
?> Now that works fine on my homepage, or any page in the /public_html/ directory, but if i
in....
Redirect Problem? [resolved]
(9) Hi! I just got my domain switched. My forum for my site is located in a /board directory. I
have nothing in root. So I added a redirect from root to the board directory. I refreshed my
browser, even restarted my PC, but when I go to the site - it takes me to QUOTE Great Success
! Apache is working on your cPanel® and WHM™ Server If you can see this page, then the
people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache
Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now....
Http_redirect() [resolved]
(5) i am writing a script, and whenever i use this line CODE
http_redirect("process.cgi"); i get a call to undefined function error for
http_redirect(). maybe i am misunderstanding what this function is used for..... when i call it, it
will take the user to the page indicated... in my case "process.cgi" that was my interpretation of
it from the page in the php manual. i am running xampp for windows and php 5.2.1....
Aef Forum Modifications
Header bar, Footer Bar and Styling them (2) Here are a couple of Tutorials I have posted on my AEF Forum hosted here at the Trap17. Since the
Tutorials are already published, I will merely link to them. Header Bar Information :
http://www.jlhaslip.trap17.com/aef103/index.php?tid=11 Footer Bar Information :
http://www.jlhaslip.trap17.com/aef103/index.php?tid=10 Styling the Header/Footer Bar :
http://www.jlhaslip.trap17.com/aef103/index.php?tid=16 The first two are about how to add some
html code to the space reserved in the Forum layout for an optional Advertising spot. I adapted some
code so that several ....
How To Get Rid Of Cyclic Redunduncy Check(crc) Errors From Cd/dvd's
(5) Lost MANY CD's and DVD's due to that.Precious lots of data perished for no fault of
ours.What causes this error in CD/DVD's and how do we get rid of it?Making an image is
impossible ,same with trying to extract data using IsoBuster.Evn brand new scratch fre discs show
this error sometimes.....
Wordpress Error : Warning: Cannot Modify Header Information
(5) are there any wordpress users here, if so please post up, I have some questions and you guys might
be abele to help....
Can Somebody Edit A Flash Header For My Site?
(5) hey im not sure if im posting this int he right place but is there anyone who can edit a flash
header for my site? i don't have the program and i don't know how to work so if anyone wants
to help me..i can either post the file on my site so you can get it or i can send it through msn/
aim.....
New Found Php Coding Errors
I always thought these worked, but suddenly they no longer do?! (5) Hi i'm dan from new zealand, right next to my home land australia. I have been writing php
scripts for two years now and just recently none of them have been working. Please help me out as
best as you can, i'm sure it is only something simple. CODE ----------------Form
1-------------------------- <?php // ---- Customized form script for the HBRC---------------
// Receiving variables ----------------------------------- @$fn =
addslashes($_POST['fn']); @$ln =
addslashes($_POST['ln']); @....
Giving A Flash Button A Link
i get errors (3) oke well i made my button and i addet the actionscript to give the button an url,see the screenshot
below now for some reason it gives me errors,and i don't know what i did wrong to be
honest,so can some one help me out with this p.s i do use flash cs3 so i dunno maybe its another
way to put an url on ur button with this version cause with flash pro8 and mx i never had a problem
with this....
Site Header (request)
(6) want a stylish header for my site. I did 1 on my own but it is way too lousy It is very simple,
all it got to be is 1. 360 * 60 pixels (Maximum size) 2. Contain the word limeTOUCH with lime
being bold and completes all to be below it. 3. Make it as elegant and stylish as possible You
can just send the psd to me. desirematters hotmail com You can download the PSD here.
http://www.limetouch.com/wp-content/Header_Dark.psd You can take it as a base, change the orb and
the text. It is yours to do, let your creativity run wild. I hope someone can help me. ....
How To Redirect
Not as simple as it sounds (5) I am currently doing a small prjoect for a group. We have the main website sorted out but the guys
want a site where they can put there funny pictures, a forum and general stuff that we dont want the
public seeing. I looked at paying for a secure area on our hosting but we did not want to have to
pay more than we already were as it is not being hosted with trap17. SO i came to the conclusion of
using a simple password page, and redirects. Is there anyway of redirecting users who have not first
entered the correct password. Ill try to explain in a bit more detail. Say m....
Menu Errors In Internet Explorer
(4) I am not sure if this is the correct section, but this is related to HTML. I have some menus at the
top of my forum, which work perfectly in Firefox. But my members started complaining that they were
not working correctly, and when I tested it in Internet Explorer, I found that only two of the menus
show up, and the others show up as plain text below. Here is a screenshot of what the menus look
like in the two browsers: I have thought of something though. The HTML i used for my menus was
the only code I could find for to make some menus. But I noticed that this forum....
Two Errors I Get.
On my phpBB2 forums. (1) One is one I think everyone is getting. I tried to submit a support request but it says I have to
define a language. I click the button and I get a WHW error or something. Then it redirects me back
to the main page. Then at the bottom of the sumbit request page is says that this feature has not
been set up by a admin yet. I think everyone is getting this one. If so please say you are or if I
am alone. QUOTE Warning: mysql_connect() : Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (2) in /home/damen/public_html/phpBB/db/m....
[php] Header Function
(2) Header function Greetings we are going to use the header() funtion to redirect start making a
file called page.php at the top of the file add CODE <?php ?> Example 1 After
CODE header('Location: http://www.trap17.com'); the LOCATION means
where you want it to go. Example 2 you also can define a file that you want to redirect to After
CODE header('Location: index.php'); Example 3 you also can add a timer to
it /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt=....
Database Errors!
Started after HDD change.. (5) Hello, I am having database errors. They started after yesterdays HDD change. Its all fine when i
refresh site, they not that often but still i get them. It says "could not connect to database". And
i also received mail from gamma.xisto.com which says: QUOTE There has been a problem with the
database! This is a notice email to let you know that SMF could not connect to the database,
contact your host if this continues. so i am contacting my host......
Help : Www Redirect
(3) I want the website url to be always http://www.laschatz.info/ . even if the visitor types
http://laschatz.info/ it should be automatically redirected to http://www.laschatz.info/ I found
that this works in trap17.com too. If I type http://trap17.com , it automatically gets changed to
http://www.trap17.com/ Please help me how to do this.....
Domain Name Redirect
(7) I've setup the my account with a domain name with start of this month and from that time and
it's working normally, but the problem starts when I have add an addon domain last 4 days ...
the addon domain works fine but the oiginal domain name somtimes it shows me pages that were on
previous server... I've checked the Nameservers .. pointed to Trap17 servers .. I wondered....
Google China
Errors with Google (13) For about one or two weeks my browsers(both internet explorer and firefox) were hijacked to some
degree by google. No matter what web address I would put in to either of them be it something like
www.yahoo.com or www.msn.com or anything at all I kept getting sent to an error page for Google
China and the only other page I could access was the Google China home page. Anyone else have this
problem or heard of it? I'm really interested in knowing wtf google screwed up on the internet,
or was this just a forceful advertising scheme by the Search Giant.....
Qupis Hosting Module Errors. Fixed Now!
(0) Hi Members, We had some module ERRORS yesterday as a result, There was a brief downtime. The ads
were not being displayed properly and some members reported duplicate ads. The errors have been
fixed. Within this span, any accounts which were ordered might have hosting activation problems. We
estimate around 6-7 accounts with these errors. We are extremely sorry for the inconvenience.
Thank You....
Mods/admins Big Problems With Accessing The Forums Here! [resolved]
sme silly JS redirect all the time (7) Hi there Im having a nasty issue with accesing the forums when javscript is enabled in my browser,
both in IE6 and the latest FF, at the moment JS is off which is why im able to post this. Basically
when i access the forums the forums shw for a split secnd and then are replaced by a blank page with
a link saying "Click to show/hide »" with the url f that link being whatever page i wass trying to
get, with a hash, eg trap17.com/forums/# and if i click that link it just repeats with the forums
than this blank page. Any ideas what it is? I dont see how it could be my sid....
Major Dns Errors
(10) A bit of info that might be needed first: -I go to college, the only time I can go to or
work on my site is at that college usually and once in a while at a friend's house. -I don't
have administrative access at the college. -Nothing has changed with the Network at the college
since December. -My problem started maybe last week or it may have started weeks ago I don't
remember using my site much before a week ago, but I highly doubt the problem started then.
Problem: -After 5-30minutes of being on my site usually I can no longer go to it. It hap....
Redirect Problem
(6) Hi, does anyone know if there is a way to display say www.b.com at www.a.com without using redirect
from a to b. The real problem i have is if you try going to www.frusciante.net you will get
redirected to www.locborg.de/fru where the files are stored. The code in frusciante.net is: HTML
FRAMESET border=0 frameSpacing=0 rows=100%,* frameBorder=0 > FRAME name=bannerframe src ="
http://www.locborg.de/fru/ " noResize> /FRAMESET > So is there a way to display the files
from locborg.de/fru while maintaining the frusciante.net URL in the browser?....
Php Header Problem
i always got header problem (11) i really hate the header function it always get an error saying ( cannot ------- headers already
sent by----- ) and here's my error: Warning: session_start(): Cannot send session cookie -
headers already sent by (output started at /home/adly3000/public_html/Mail/index.php:5) in
/home/adly3000/public_html/Mail/index.php on line 81 Warning: session_start(): Cannot send session
cache limiter - headers already sent (output started at /home/adly3000/public_html/Mail/index.php:5)
in /home/adly3000/public_html/Mail/index.php on line 81 Warning: Cannot modify header ....
Problem With Page Redirect
Help me out with this problem... (8) hey ppl, i just wanted a little help...i designed this website, but i want that if i click on
certain link, it should open new page for few seconds and then browser should automatically redirect
me to some other page....i tried this with header() function but i couldnt do the wait n redirect
part, ... so somebody plz help.... -thanx in advance! Thanks Avalon, topic changed. ....
What's The Best Subdomain/url Redirect Service?
Recommend me some. (34) OK, so far I have tried now.nu and da.ru but both sign-ups failed, hence rendering the subdomain I
wanted invalid forever and ever and ever and ever. Why I don't want to try .co.nr is because
they require a button link on your main page, even though they claim it is ad-free. That is one of
the reasons why I won't use their service - I hate people who make false claims. The other
reason I won't use their service is because the site I'm making is for a school submission
and it just is going to look very stupid/irritating to have a site that you worked a m....
Redirect Code Help
(8) Can someone give me the code which redirects you automatically in the whole page instead of only in
the frame? I'm using this code, but it just redirects inside a frame... CODE <meta
HTTP-EQUIV="REFRESH" content="0; url=http://www.something.com"> But now
.tk has added a ad to the pages so I don't want to use it anymore, so I want that people
entering the site is being redirected to the "real" domain name now.......
Looking for header, redirect, errors
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for header, redirect, errors
*MORE FROM TRAP17.COM*
|
advertisement
|
|