Pass javascript value into php code
$10-30 USD
Paid on delivery
This is very small project. The task is pass value of javascript variable into php code.
The script is this:
<script>
var url = [url removed, login to view];
//var url = [url removed, login to view]("http:\/\/");
var exp = [url removed, login to view](/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
var $url_username = exp[5].split("/")[1];
[url removed, login to view]($url_username);
</script>
<?php echo $url_username;?>
When I try to echo the value using php it is not working.
So the task is add and or change code in order to be able to use javascript value in php code. But any solution must not disturb my url format, which is [url removed, login to view]
I think that anyone with good knowledge of javascript/php can do it in 5 -10 min. Bid only if you can provide me solution quickly.
Project ID: #5328774
About the project
Awarded to:
hello. i have it ready already. do you want me to send it? ////////////////////////////////////////////////////////////
5 freelancers are bidding on average $29 for this job
Hello, expert in JavaScript and PHP programming here. I can modify your code in order to be able to send variables from JavaScript to PHP. If you are interested we can talk, Paul
Hello. I have a lot of experience ij javascript and php. Contact me to talk before if you are inerested Thanks Koran
This is not possible to you get javascript variable in php, you can get php variable in javascript, because is server side language, As i see your requirement, there is a only way to do that thing, you need to get req More