Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.