tinker Posted January 23, 2008 Share Posted January 23, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/87419-using-links-to-submit-forms/ Share on other sites More sharing options...
phpQuestioner Posted January 23, 2008 Share Posted January 23, 2008 do it like this: <input type='submit' name='UPDATE' style='color:blue; cursor:pointer; background-color: transparent; border-style: none; text-decoration: underline' value='Click here to use a different postal address?'> Quote Link to comment https://forums.phpfreaks.com/topic/87419-using-links-to-submit-forms/#findComment-447335 Share on other sites More sharing options...
tinker Posted January 24, 2008 Author Share Posted January 24, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/87419-using-links-to-submit-forms/#findComment-447493 Share on other sites More sharing options...
phpQuestioner Posted January 24, 2008 Share Posted January 24, 2008 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> Quote Link to comment https://forums.phpfreaks.com/topic/87419-using-links-to-submit-forms/#findComment-447622 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.