PHP Code:
function jdisplay2($getall,$getwhat,$noneofwhat,$whathappened,$optionfour)
{....
                print
"<div style='margin-left:auto; margin-right:auto; width:90%;height:103px;position:relative; clear:left;border:1px solid #000000;background-color: rgba($c1,$c2,$c3, 0.4);font-weight:bold'>".$displayit."</div> 
                <div style='float:right;'><div style='text-align:right;'>"
.$whathappened." ".$budsince."&nbsp;</div>
                        <div style='text-align:right;'><a class='inline' href=\"#message_content_"
.$userinfo->userid."\">Message</a>&nbsp;</div>
                        <div style='text-align:right;'><a class='inline' href=\"#wink_content_"
.$userinfo->userid."\">Wink</a>&nbsp;</div>
                        <div style='text-align:right;'><a class='inline' href=\"#save_content_"
.$userinfo->userid."\">Save Profile</a>&nbsp;</div>
                        <div style='text-align:right;'><a class='inline' href=\"#dunno_content_"
.$userinfo->userid."\">".$optionfour."</a>&nbsp;</div>
                        <!-- This contains the hidden content for inline calls -->
                        <div style='display:none'>
                            <div id='message_content_"
.$userinfo->userid."' style='padding:10px; background:#fff;'>
                            I wanna put a form here to message "
.$userinfo->username."
                            <a class=\"ajax\" href=\"ajax.html\">Click here to load new content</a></p>
                            </div>
                            <div id='wink_content_"
.$userinfo->userid."' style='padding:10px; background:#fff;'>
                            I wanna make this to pick a WINK to give to"
.$userinfo->username."
                            <a class=\"ajax\" href=\"ajax.html\">Click here to load new content</a></p>
                            </div>
                            <div id='save_content_"
.$userinfo->userid."' style='padding:10px; background:#fff;'>
                            This will pop-up to show you saved "
.$userinfo->username."'s profile 
                            <a class=\"ajax\" href=\"ajax.html\">Click here to load new content</a></p>
                            </div>
                            <div id='dunno_content_"
.$userinfo->userid."' style='padding:10px; background:#fff;'>
                            Not sure what will go here but its with "
.$userinfo->username."
                            <a class=\"ajax\" href=\"ajax.html\">Click here to load new content</a></p>
                            </div>
                        </div>
                </div>"
;
...} 
This creates a set of links for each user in my MYSQL. Everything but one issue works perfectly. This issue is when I hover or click on the links Message, Wink, Save Profile, or Remove (if the value of $optionfour is 'remove') it wants to go to localhost/#message_content_"some number".
This script is located in a PHP function on localhost/include/lightbox/jdisplay.php.

How can I redirect the href link correctly?