Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
spiders
Regular
Regular



Joined: Jun 05, 2006
Posts: 90
Location: Aachen / Germany

PostPosted: Sun Jan 17, 2010 3:38 am Reply with quote

Hi,
how can I read out the current address and place it in a variable?

For example, I would like to read this address and put it in a variable

Code:


http://raven24.m2-medias.de/modules.php?name=Forums&file=viewtopic&t=3&sid=80beeb423a58e3d7ffba271a52a55b34

_________________
http://www.m2-medias.de >> the global Web Content Management Services
http://raven24.m2-medias.de/ >> My Raven24 Testside

Last edited by spiders on Sun Jan 17, 2010 5:25 am; edited 1 time in total 
View user's profile Send private message Visit poster's website
spiders







PostPosted: Sun Jan 17, 2010 4:23 am Reply with quote

Ok, I did it Smile

Code:
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
 
spiders







PostPosted: Sun Jan 17, 2010 5:24 am Reply with quote

Next Problem,

I want to do in the forum templates following code:

Code:


<script type="text/javascript">
var Link = (window.location.href) ;
document.writeln(" <img src=\"http://api.qrserver.com/v1/create-qr-code/?data=" + Link + "&amp;size=150x150\" alt=\"\" title=\"\" />   ");
alert (Link);
</script>


The problem is that in the ducment.write link is not the whole url. But the alert is the whole url.
If something is filtered in the document.write link?

I hope you understand me.

Embarassed
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©