HowdeeDoodee Posted July 16, 2007 Share Posted July 16, 2007 I am getting a parse error in the hyperlink line. Can anyone help? Thank you in advance for any replies. <?php $ref[0] = "gen 1:12"; $ref[1] = "exo 2:31"; foreach($ref as $value){ <a href="www.find.net/CP/Search/rsearch.php?submit=true&searchtype=All+Words&search=&wholeword=Whole+words+only.&table_display=true&lookup=.$value."\">".$value."</a> }; ?> Quote Link to comment Share on other sites More sharing options...
lococobra Posted July 16, 2007 Share Posted July 16, 2007 You can't just start writing html in the middle of your PHP, use an echo like... <?php echo '<a href="blahblahblah'.$value.'"\>'.$value.'</a>'; ?> Quote Link to comment Share on other sites More sharing options...
Oldiesmann Posted July 16, 2007 Share Posted July 16, 2007 <?php $ref[0] = "gen 1:12"; $ref[1] = "exo 2:31"; foreach($ref as $value){ echo '<a href="www.find.net/CP/Search/rsearch.php?submit=true&searchtype=All+Words&search=&wholeword=Whole+words+only.&table_display=true&lookup='.$value.'">'.$value.'</a>'; }; ?> Quote Link to comment Share on other sites More sharing options...
HowdeeDoodee Posted July 16, 2007 Author Share Posted July 16, 2007 Thank you for the comments. Got it working. I left off the echo when I pasted here. Another issue remains but I will start a new thread. Thank you again. Quote Link to comment 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.