Jump to content

why is this html link echo statement not working?


Recommended Posts

the following echoes very well but when i click on the link nothing happens. i have also tried experiementing with different url addresses but nothing is working...please help...

 

<?php

echo  '<a href="www.ilovegirls.com">link to girls</a>';

?>php

thank you people for your help...I have tried it and its okay but why does the same syntax not work with links such as /women/girls/index.html, for example i noticed that this does not work...

 

<?php

echo  "<a href='/women/girls/index.html'>go to girls</a>";

 

?>

thank you people for your help...I have tried it and its okay but why does the same syntax not work with links such as /women/girls/index.html, for example i noticed that this does not work...

 

<?php

echo  "<a href='/women/girls/index.html'>go to girls</a>";

 

?>

 

Works for me. Try it without the first / .. example ...

<?php 
echo  "<a href='women/girls/index.html'>go to girls</a>";
?>

thank you people for your help...I have tried it and its okay but why does the same syntax not work with links such as /women/girls/index.html, for example i noticed that this does not work...

 

<?php

echo  "<a href='/women/girls/index.html'>go to girls</a>";

 

?>

 

Works for me. Try it without the first / .. example ...

<?php 
echo  "<a href='women/girls/index.html'>go to girls</a>";
?>

 

thank you Lukeidiot for your help......i know this is not that difficult..i hv been working on a lot of code and for some silly reason i just got stark on doing a simple thing like php and html links...thanks for your patience and kindness..by the way i like your username:)

Try this:

 

<?php
echo "<a href='http://www.ilovegirls.com'>Link to girls</a>";
?>

wow, that I didn't notice that :P

 

What didn't you notice?

I didn't notice he put the ' around all the line and the " around the link, instead of otherwise :P

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.