INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Links working in Chrome but not in IE

Links working in Chrome but not in IE

(OP)
Good day,

I have a webpage which runs a PHP script to download info to the webpage. There is 2 buttons for a Application form and to book a test drive. These buttons are working in Chrome and firefox but not in IE. Here is a link to the particular page: http://www.idealauto.co.za/showroom.php. Do somebody know why?

RE: Links working in Chrome but not in IE

Because IE is ignoring the link around the button when you click the button.

Its is recommended to either use CSS to style a text link to look like a button, or use JS on the button's onclick event to get the desired functionality.

Either way surrounding a button with a link is a poor choice.

CODE

<input type=button onClick="window.location='financing.html'" value="Application Form"> 

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

RE: Links working in Chrome but not in IE

(OP)
Thank you very much. It is working now. Just one more problem I have. On the home page http://www.idealauto.co.za there is a script that shows the cars that is on promotion. I used the function $data = mysql_query("SELECT * FROM Promo ORDER BY RAND() LIMIT 1") or die(mysql_error());

The problem is that it is not downloading a new entry from the database everytime and in IE it is not changing at all. Is there a script I can use to show the images in a circular way. So if there is 4 entries it must show 1,2,3,4 and then start a 1 again?

RE: Links working in Chrome but not in IE

This runs a db query and gets exactly 1 result from the db. It randomizes the order so you would get a random item each time.

Are you saying you want to get them in order rather than random?

Also how many entries do you have? If they are very few, its conceivable it may be getting the same one since there aren't many items from which to randomize.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

RE: Links working in Chrome but not in IE

(OP)
Hi.Yes, I would like it rather in order than random. There will only be 3 to 5 items in that field.

RE: Links working in Chrome but not in IE

That's going to be a little more involved. You'll need to store the current displayed promo so you can get the next one the next time it loads based on what you displayed last time. Its likely going to involve sessions.

You'll want to post your PHP code in forum434: PHP for more specific answers.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close