?
Solved

Why will this not work?

Posted on 2003-11-25
4
Medium Priority
?
227 Views
Last Modified: 2011-09-20
<CENTER><table>
<tr>
<td align=left valign=top><br><a href="surveyP1.asp"><input type="image" src="but_back.gif" alt="back"></a></td>
<td align=right valign=top><br><input type="image" src="but_next.gif" alt="Submit changes"></td>
</tr>
</table></CENTER>

when I hit the back button it does not go to surveyP1.asp......why?

When I hit the submit buton it goes to the next page, but how does it know this as I did'nt specify the URL?
0
Comment
Question by:PieP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 9816797
You can't put inputs inside links. Try:

<a href="surveyP1.asp"><img src="but_back.gif" alt="back" style="border-style: none;"></a>

(And as for the submit button, I'm guessing you did specify it (in the correct place - the <form> action attribute) but didn't copy that code across.)

(and an external style sheet is preferred for the CSS in there)
0
 

Author Comment

by:PieP
ID: 9816840
That's great thanks...

What do you mean when you say:
(and an external style sheet is preferred for the CSS in there)

Can you give me an example?
0
 
LVL 8

Expert Comment

by:xabi
ID: 9816846
Hi PieP,

1.-

You must use a "<img src ..... this way:
<td align=left valign=top><br><a href="surveyP1.asp"><img src="but_back.gif" alt="back"></a></td>

2.- Cause it's a <input type="image" ....

xabi
0
 
LVL 17

Accepted Solution

by:
dorward earned 100 total points
ID: 9816867
img { border-style: none; } in the style sheet perhaps. Depends on circumstances.

<http://dorward.me.uk/www/css/#tutorials> might be of use.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

650 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