Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
javascript help - passing current url to a cgi link
3stripe
✭✭
i know this is very simple but i'm stuck... and I need to do this tonight...
(just got an email out of the blue from a client wanting to add text-to-voice links to their website)
the code for this is pretty easy, just a link to their software like this:
http://asp.readspeaker.net/cgi-bin/clientname?customerid=123456&url=http://www.currenturlhere.com
I believe I can find the current url using:
But how do I feed this into the link???
(just got an email out of the blue from a client wanting to add text-to-voice links to their website)
the code for this is pretty easy, just a link to their software like this:
http://asp.readspeaker.net/cgi-bin/clientname?customerid=123456&url=http://www.currenturlhere.com
I believe I can find the current url using:
echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
But how do I feed this into the link???
0
This discussion has been closed.
Comments
'REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.
Have faith 3stripe! Hopefully you're getting paid or something, and isn't that what counts now?
Hmmm