Welcome to WebmasterWorld Guest from 54.145.55.135

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Trying to add an additional link

     
12:50 pm on Apr 11, 2012 (gmt 0)

Junior Member

joined:Feb 23, 2012
posts: 91
votes: 0


} else { // If no SESSION id is set, which means we have a person who is not logged in
$interactionBox = '<div style="border:#CCC 2px solid; padding:5px; background-color:#E4E4E4; color:#999; font-size:13px;">
<a href="makeareservation.php">Make A Reservation</a> or <a href="ckin.php">CHECK IN</a> to interact with ' . $username . '
</div>';
$the_anno_form = '<div style="background-color:#BDF; border:#999 1px solid; padding:8px;">
<textarea name="anno_field" rows="3" style="width:99%;"></textarea>
<a href="makeareservation.php">Make A Reservation</a> or <a href="ckin.php">CHECK IN</a> to write on ' . $username . '\'s Announcement Board
</div>';
}

In my edit profile page (error response), Im trying to add an additional link. Im trying to add ckin.php.
What am I doing wrong?

Thanks in advance.
Scotty
1:07 pm on Apr 11, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:June 6, 2006
posts:99
votes: 1


What error are you getting?
1:18 pm on Apr 11, 2012 (gmt 0)

Junior Member

joined:Feb 23, 2012
posts: 91
votes: 0


My "error" is that it shows the first link and not the second one. I want both to titles and links to show.

THANK U!
3:21 pm on Apr 11, 2012 (gmt 0)

Junior Member

10+ Year Member

joined:June 6, 2006
posts:99
votes: 1


So when you echo $the_anno_form, the first link shows and all the text, but the CHECK IN text is not linked? Just making sure I'm following. The text looks good. Not sure why it wouldn't be working.
3:47 pm on Apr 11, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Which first one and which second one? The first div block and the second div block, or the second link in the first block, or the second link in the second block, or the second ckin.php link in the second block? :-\

If it's the first condition (the second div is not showing?) you're storing these in two variables. Are you doing this somewhere?

echo "$interactionBox $the_anno_form";

Noting that $interactionBox, $interactionbox, and $InteractionBox are three different variables (typo?)