Jump to content

Recommended Posts

I have a form which I want to either submit with a link or use a submit button where I can set a different GET to the actions link. If using the button there is the problem of setting the color of the text to the same as the standard links on the page. The solution must NOT use any javascript whatsoever...

 

<input type='submit' name='UPDATE' style='cursor:pointer; background-color: transparent; border-style: none;' value='Click here to use a different postal address?'>

 

The reason why I need this is because if I use a link the data already inputted in the form is lost. I can get around the using a different 'action' GET, but without a lot of overhead (or an extra class definition), the colouration of the button is an issue, i'm wanting to do this inline!

 

For instance is it possible to set the colour along these lines?

 

<input type='submit' name='UPDATE' style='color: a.link.color; cursor:pointer; background-color: transparent; border-style: none;' value='Click here to use a different postal address?'>

 

Cheers

 

Link to comment
https://forums.phpfreaks.com/topic/87419-using-links-to-submit-forms/
Share on other sites

No, i'm not wanting to define a specific color, but make it inherit whatever the links are set to on the page already.

 

In the end i'll probably write a module level css set for this particular module, but I like to if things are possible. If this is possible I might not have to write a module level set of css though and that'd be a serious bonus...

 

So, any more suggestions?

you can do it this way:

 

<style type="text/css">
a input {color:blue;text-decoration:underline;cursor:pointer;background-color:transparent;border-style:none}
</style>

<a><input type='submit' name='UPDATE' value='Click here to use a different postal address?'></a>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.