?
Solved

A html page with buttons

Posted on 2007-07-28
4
Medium Priority
?
207 Views
Last Modified: 2010-03-05
Hi,

I need a HTML page which will have buttons on it and when clicked can take  me to some excel sheets.
I should be able to edit the text on the button as well as link the button to a excel sheet in the local machine.

regards
Sharath
0
Comment
Question by:bsharath
  • 3
4 Comments
 
LVL 31

Expert Comment

by:captain
ID: 19586485
Hi are you looking for

<FORM METHOD="LINK" ACTION="excel.xls">
<INPUT TYPE="submit" VALUE="Push me!">
</FORM>

This will generate a button with the text Push me! which opens an Excel document called excel.xls

Hope this helps
0
 
LVL 11

Author Comment

by:bsharath
ID: 19587264
Any way you can put in 20 buttons and host the file for me on a shared site
0
 
LVL 31

Accepted Solution

by:
captain earned 2000 total points
ID: 19587723
Hi bsharath

If you want 20 buttons all you need is copy the code above and change the variables to suit your 20 documents. Unfortunately I don't provide hosting servcies myself, but you may want to have a look at the EE Webhosting section for some guidance on good ISPs and how to go about it.

Not knowing what exact layout you need, designing a page will be difficult beyond html code, what name does this page need to have for your users to find it, does it sit within an existing www or does it need to link to another and so on. But assuming that you only have one page and that your Excel documents sit in a subfoldeer called xls, we call the page index.htm

The code for index.htm would create a simple page, white background and 4 rows of 5 buttons:

<html>
<head>
</head>
<body>
<p><FORM METHOD="LINK" ACTION="excel1.xls">
<INPUT TYPE="submit" VALUE="Button 1">
<FORM METHOD="LINK" ACTION="excel2.xls">
<INPUT TYPE="submit" VALUE="Button 2">
<FORM METHOD="LINK" ACTION="excel3.xls">
<INPUT TYPE="submit" VALUE="Button 3">
<FORM METHOD="LINK" ACTION="excel4.xls">
<INPUT TYPE="submit" VALUE="Button 4">
<FORM METHOD="LINK" ACTION="excel5.xls">
<INPUT TYPE="submit" VALUE="Button 5">
</FORM></p>
<p>
<FORM METHOD="LINK" ACTION="excel6.xls">
<INPUT TYPE="submit" VALUE="Button 6">
<FORM METHOD="LINK" ACTION="excel7.xls">
<INPUT TYPE="submit" VALUE="Button 7">
<FORM METHOD="LINK" ACTION="excel8.xls">
<INPUT TYPE="submit" VALUE="Button 8">
<FORM METHOD="LINK" ACTION="excel9.xls">
<INPUT TYPE="submit" VALUE="Button 9">
<FORM METHOD="LINK" ACTION="excel10.xls">
<INPUT TYPE="submit" VALUE="Button 10">
</FORM></p>
<p><FORM METHOD="LINK" ACTION="excel11.xls">
<INPUT TYPE="submit" VALUE="Button 11">
<FORM METHOD="LINK" ACTION="excel12.xls">
<INPUT TYPE="submit" VALUE="Button 12">
<FORM METHOD="LINK" ACTION="excel13.xls">
<INPUT TYPE="submit" VALUE="Button 13">
<FORM METHOD="LINK" ACTION="excel14.xls">
<INPUT TYPE="submit" VALUE="Button 14">
<FORM METHOD="LINK" ACTION="excel15.xls">
<INPUT TYPE="submit" VALUE="Button 15">
</FORM></p>
<p><FORM METHOD="LINK" ACTION="excel16.xls">
<INPUT TYPE="submit" VALUE="Button 16">
<FORM METHOD="LINK" ACTION="excel17.xls">
<INPUT TYPE="submit" VALUE="Button 17">
<FORM METHOD="LINK" ACTION="excel18.xls">
<INPUT TYPE="submit" VALUE="Button 18">
<FORM METHOD="LINK" ACTION="excel19.xls">
<INPUT TYPE="submit" VALUE="Button 19">
<FORM METHOD="LINK" ACTION="excel20.xls">
<INPUT TYPE="submit" VALUE="Button 20">
</FORM></p>
</body>
</html>

Obviously you can make this prettier with logos and tables, but as a basic page it'll suffice.

hope this helps
0
 
LVL 31

Expert Comment

by:captain
ID: 19587730
thanks and good luck with your project.

All the best
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

864 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