submit button - hyperlink

G

Guest

I am attempting to link from the text in a submit button to a file in a sub
directory. Example: if the text in a submit button was “C20001†I would like
to link to the sub directory “/C20001/data.php (no Microsoft extensions, I am
using Front Page 2003) so the text would be a variable as we may have several
sub directories, the file name would remain the same. Big help needed as I
only know enough to be dangerous (I did buy the front page book to read
tonight)
 
T

Thomas A. Rowe

You are going to have to learn to write some PHP to use the value of the form's submit button.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
P

p c

After you create the form, delete the Submit unless you need it to
submit data.

In the HTML view of the page add the following line for each button you
want.

<INPUT TYPE="BUTTON" VALUE="C20001"
ONCLICK="window.location.href='/C20001/data.php'">

Edit the values for VALUE and href to match each direcotry.

VALUE="C20001" will result in "C20001" displayed as text label on the
button.

This require javasctip ebabled on the browser.

...PC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top