Solved

Why will this not work?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

810 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