A noob's php link question
This is a discussion on A noob's php link question within the Web-Code Help and Discussion forums, part of the Tech Discussion category; I'm currently trying to post a link as part of a newspost on a site (can't link to it here ...
| Web-Code Help and Discussion Forum for questions relating to web-based scripting languages and website design. |
![]() |
| | LinkBack | Thread Tools | Rate Thread | Display Modes |
|
#1
| ||||
| ||||
| I'm currently trying to post a link as part of a newspost on a site (can't link to it here as it is work related). The box for newsposts allows html code, but whenever I try to put in a link to another part of the site the code shows up in the page without being converted. I suspect this has something to do with Php which I don't really know much about. The link I'm trying to put in looks like this: www.abc.de/index.php/location If I use this with the normal html command <a href=""></a> nothing happens. If I use www.abc.de/location as address the link is properly converted but doesn't work. Help please?
__________________ Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells |
|
#2
| ||||
| ||||
| index.php/location does not exist/is invalid. It's the same as saying C:\Documents\hello.txt\whatever. You're trying to continue a directory from within a file. Link directly to the page you are trying to post.
__________________ Last edited by Yannick; 4 Weeks Ago at 02:25 PM.. |
|
#3
| ||||
| ||||
| I'd like to, the problem is that the URL of that location is diplayed to me as index.php/location/. When entering this URL in my browser it actually shows me the right page, but I cannot enter the URL into a link.
__________________ Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells |
|
#4
| ||||
| ||||
| Try not having the last slash at the end. Also, you're doing this? <a href="somesite.com/index.php/location">linkzorsz</a>
__________________ Chopped demise differently apologized |
|
#5
| ||||
| ||||
| Some site prefer it that way instead of the href and some only work with the " and some without. HTML Code: [url="link in here"]link title here[/url] Last edited by goody10; 4 Weeks Ago at 01:40 PM.. |
|
#6
| ||||
| ||||
| That is BBCode and HTML. I assume you want to use hyperlink in PHP? If so, either use the echo function or print. PHP Code: |
|
#7
| ||||
| ||||
| I don't think he would want to link in PHP. Hence: Quote:
__________________ Chopped demise differently apologized |
|
#8
| ||||
| ||||
| In some cases, HTML linking within a PHP template causes problems like these; not being able to parse, or convert properly. |
|
#9
| ||||
| ||||
| He said the box he's trying to link through supports html; there's no guarantee it has php running on it. I've still never seen this .php/x thing either. If it's querying something within the php page then it should have a question mark at least.
__________________ |
|
#10
| ||||
| ||||
| Thanks for all the input, I tried the other suggestions but it didn't work. I think the page just isn't set up properly. When inputting a link to box for adding content the link isn't properly converted, it always inserts something (www.nameofsite.de/index.php/content) in front of the address that is used in the html tags. Maybe the box wasn't intended to support html after all.
__________________ Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells |
![]() |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
All times are GMT -7.














Linear Mode
