homepage Welcome to WebmasterWorld Guest from 107.20.34.144
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Trying to add an additional link
Scotty13



 
Msg#: 4439566 posted 12:50 pm on Apr 11, 2012 (gmt 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

 

cffrost2

5+ Year Member



 
Msg#: 4439566 posted 1:07 pm on Apr 11, 2012 (gmt 0)

What error are you getting?

Scotty13



 
Msg#: 4439566 posted 1:18 pm on Apr 11, 2012 (gmt 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!

cffrost2

5+ Year Member



 
Msg#: 4439566 posted 3:21 pm on Apr 11, 2012 (gmt 0)

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.

rocknbil

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



 
Msg#: 4439566 posted 3:47 pm on Apr 11, 2012 (gmt 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?)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved