jt327
-
Posts
7 -
Joined
-
Last visited
Never
Posts posted by jt327
-
-
what im saying is that when im on my webserver i want to be able to browse to www.myurl.com and access my site. at the moment i keep getting a page not found error so i need to use localhost.
jared. -
hey guys,
this probably isnt the right area to be posting this question but anyways..
i currently have xampp set up on my xp box and have my website up and running, ie it can be viewed externally.
From the server itself i have always been accessing the page by 127.0.0.1, and i am curious as to how i can set my server up so that i can view the website with its full url (ie www.whatever.com) internally.
not sure if its relevant but i am using a dlink dsl-g604t router.
Thanks in advance,
jared. -
well basically ive got a html page which im trying to adapt to php to work with my content management system. in the html file ive got a javascript function call which passes one of the variables passed to the page. somehting like..
myFunction(var);
what im trying to do is read in the var from the
<?php
$var= $_GET['var'];
?>
and then pass it to myFunction(). Im not the best coder so im not sure about the best way to go about this.
Jared. -
hey guys sorry im really new to this, so a bit slow..
would there be any way for me to access the variable through html without jumping into php with the <?php ?> tags? -
Hi Destramic,
Thanks for your quick reply. If i then wanted to reference the variables inside the html file, but outsite of the php code block, how would i go about doing this?
Jared. -
Hey Guys,
I know this is a common problem for people new to php, and ive done a lot of research before posting but so far cannot get it working. My problem is:
i am trying to pass variables to a html page through the url : http://url.com/index.php?id=123&var=0 but am having trouble getting the variable from the other page.
should i be doing something like..
<?php
$var= $_GET['var'];
echo "the variable is: $var";
?>
If so is there a problem with this code? Will that php code work fine imbedded in a plain html file? or will i have to add somethin else? any help would be massively appreciated
Thanks in advance,
Jared
accessing localhost through www url
in Apache HTTP Server
Posted