Solved

Why will this not work?

Posted on 2003-11-25
4
180 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
  • 2
4 Comments
 
LVL 17

Expert Comment

by:dorward
Comment Utility
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
Comment Utility
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
Comment Utility
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 25 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now