Forum Moderators: open

Message Too Old, No Replies

variable php a javascript

i need read php varible into html

         

marloncs

2:00 am on May 12, 2004 (gmt 0)



hello...
i have a question... i have this url

www.domain..com/index.html?page=marloncs

i need read the value of page for print in index.html page....

this page cant be php... is html...

how i can be?

tks!

Bernard Marx

8:57 am on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The string,?page=marloncs is read from index.html in it's location.search property.

If the search string will definately be of form,?page=.... then you can get the value like this.

<script>
alert(location.search.unescape().replace("?page",""))
</script>