Solved

Why will this not work?

Posted on 2003-11-25
4
214 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
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 25 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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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.…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

713 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