link to url with "?" in IE

This is a discussion on "link to url with "?" in IE" within the Web Page Design section. This forum, and the thread "link to url with "?" in IE are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 23rd, 2006, 21:21
New Member
Join Date: Jun 2006
Location: california
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
link to url with "?" in IE

Hi,

I have a website and throughout it I have a link to another website (via a button) where the url has a question mark in it, i.e. http://www.mywebsite.com/?username

The link works just fine in Firefox, but in IE, it reverses the url and when you hover the mouse over the button/link, the bottom left corner of the browser says "Shortcut to ?username at www.mywebsite.com," and nothing happens when you click on the button.

Here's a copy of the code:
Code: Select all
<a class="order" href="http://www.mywebsite.com/?username"target="_blank"><button>Order
Products</button></a>
I changed the name of the real website and username, because I wasn't sure if I should put it on here.

Does anyone know why this is happening? I have to have the question mark as part of the link url, and it's for a business, so making the link work is vital as well.

Thanks for any help!!

Note: edited to fix code - I copied incorrectly the first time.

Last edited by tikka12; Jun 23rd, 2006 at 21:26.
Reply With Quote

  #2 (permalink)  
Old Jun 23rd, 2006, 22:10
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: link to url with "?" in IE

well its not right, u forgot the space between username"target=
Reply With Quote
  #3 (permalink)  
Old Jun 23rd, 2006, 22:30
New Member
Join Date: Jun 2006
Location: california
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link to url with "?" in IE

Is that just an IE thing...the space before the "target="?

The majority of my links are like that (open a new browser) and work fine in Firefox... but thanks for the tip...I'll change it and see if it works.

I also noticed that it's only the links that I made into buttons that have a problem. The straight text links work fine.

My pdf files also will not open in correctly in IE, the link works, and adobe opens, but then the page is just blank... but it could just be my computer.

Thanks again!
Reply With Quote
  #4 (permalink)  
Old Jun 23rd, 2006, 22:34
New Member
Join Date: Jun 2006
Location: california
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link to url with "?" in IE

I just tried adding the space and that doesn't seem to work either....
Reply With Quote
  #5 (permalink)  
Old Jun 23rd, 2006, 23:00
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: link to url with "?" in IE

its most likely because dynamic urls should be for example:

www.mydomain.com?username=sypher

it has to equal something otherwise theres no point to the url as thats how dynamic languages use the url.
Reply With Quote
  #6 (permalink)  
Old Jun 23rd, 2006, 23:07
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: link to url with "?" in IE

Quote:
Originally Posted by tikka12
Is that just an IE thing...the space before the "target="?
Just clear this up, the attribute doesn't get surrounded by quotes, only the attribute's value does.

For instance:

"target=_blank" is wrong
target="_blank" is correct
Reply With Quote
  #7 (permalink)  
Old Jun 23rd, 2006, 23:21
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: link to url with "?" in IE

<a class="order" href="http://www.mywebsite.com/?username=" target="_blank"><button>Order
Products</button></a>
Reply With Quote
  #8 (permalink)  
Old Jun 26th, 2006, 19:24
New Member
Join Date: Jan 2006
Age: 17
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Re: link to url with "?" in IE

i think you need to use php
Reply With Quote
Reply

Tags
link, url, quotquot

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09
Need to build a "Trip" or "Journey Planner" jswebdev PHP Forum 4 Dec 5th, 2005 23:22


All times are GMT. The time now is 18:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43