Forum Moderators: open

Message Too Old, No Replies

Link going to the wrong place

Link going to the wrong place

         

amythepoet

8:19 pm on Dec 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

I have a problem with one of my links going to the wrong spot and don't know what I'm doing wrong.

Please help

ChadSEO

8:32 pm on Dec 1, 2005 (gmt 0)

10+ Year Member



amythepoet,

Some more detail on the problem would be benefitial. Is the link taking you to the wrong page? Is it an anchor link (ie somepage.html#somespot), and it's not taking you to the correct place on the page? Does this happen in multiple browsers, or just one? It might also help to post a snippet of your code.

Chad

choster

8:57 pm on Dec 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Something that fouled me up this very morning-- I forgot I had set a <base href>, so my relative links were breaking.

amythepoet

9:28 pm on Dec 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's the snippet:

<b>Order right here</b> for your wedding speech.</p>
<form name="personalizedoneminutetoast" method="post" action="https://www.example.com/poemstogo2/echopay/">
<input type="hidden" name="item_desc1" value="Personalized One Minute Toast" />
<input type="hidden" name="item_quantity1" value="1" />
<input type="hidden" name="item_price1" value="99.95" />
<input type="hidden" name="item_subtotal1" value="99.95" />
<input type="hidden" name="grand_total" value="99.95" />
<input name="submit" type="image" src="imagery/order-now.gif" alt="Click here to order your customized toast" />

Now, it takes me to the page for ordering a poem, not a toast

[edited by: encyclo at 12:07 am (utc) on Dec. 2, 2005]
[edit reason] examplified [/edit]

tedster

4:11 am on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's actually a form element, and not really link. Note that your form's action attribute: action="https://www.example.com/poemstogo2/echopay/"

Isn't that the page for ordering a poem?

amythepoet

10:47 am on Dec 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi I fixed the problem. I had a page for ordering a poem and one for ordering a speech, now it goes to the right spot.

Thanks!