Grafiti4u Posted June 2, 2014 Share Posted June 2, 2014 Hi - I designed a regular website using html. One page I used was on the previous site, and it had links to a database. Its for an online wedding registry. Problem is, on the page that pulls up with the couples list of wish list items, there is a "Print the Bliss List" link that is not working, right below the list. It is just seen as text on the page, not a button element. Can you look at the code and see why this isn't working or what I can do to fix it? I use Dreamweaver CS5 and am familiar with working in html, and css code, but not php. Here is the link to the page in question: http://getinteriormotivated.com/bridal-bliss2.php?id=03313 thanks so much! Quote Link to comment https://forums.phpfreaks.com/topic/288948-php-print-button-not-working/ Share on other sites More sharing options...
fastsol Posted June 2, 2014 Share Posted June 2, 2014 Well you don't have a href in the <a> so it's not going to do anything. Quote Link to comment https://forums.phpfreaks.com/topic/288948-php-print-button-not-working/#findComment-1481704 Share on other sites More sharing options...
Grafiti4u Posted June 3, 2014 Author Share Posted June 3, 2014 Can you please be more specific? Are you saying the code isn't linking to any database? If so, can you tell me how to fix this? thanks, Kristi Quote Link to comment https://forums.phpfreaks.com/topic/288948-php-print-button-not-working/#findComment-1481765 Share on other sites More sharing options...
boompa Posted June 3, 2014 Share Posted June 3, 2014 (edited) This is not a PHP issue (because PHP runs on the server, it makes no sense unless you wanted to print to something directly connected to the server). This is the element in your page's source code: <a class="printBtn">Print the Bliss List</a> There is no href attribute, so it's not going to show as anything but text, and it's not going to do anything when it's clicked. I'm guessing that there is supposed to be some JavaScript on your page that turns elements with the printBtn class into an actual button, and initiates the print process on clicking it. In fact, it probably combines with the "printable" class to which the div containing the important content belongs: <div class="printable"> Edited June 3, 2014 by boompa Quote Link to comment https://forums.phpfreaks.com/topic/288948-php-print-button-not-working/#findComment-1481772 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.