# Url value after execution

**URL:** <https://forum.kirupa.com/t/url-value-after-execution/332306>\
**Category:** Uncategorized\
**Created:** [April 11, 2014, 12:51pm UTC](https://forum.kirupa.com/t/url-value-after-execution/332306 "2014-04-11T12:51:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atakpa](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Atakpa](https://forum.kirupa.com/u/Atakpa)\
**Post date:** [April 11, 2014, 12:51pm UTC](https://forum.kirupa.com/t/url-value-after-execution/332306/1 "2014-04-11T12:51:43Z")

</div>

Hello,  
I am using js to href to another page within my php script. On successful execution on that page, 100 is displayed on the browser. I need to get the value into a variable to test and give the user meaningful feedback but am yet to figure out a way to go about it. Can some one please point me in the right direction?  
Here is the code:  
echo “\<script language=javascript\>window.location.href='[http://www.50kobo.com/tools/geturl/Sms.php?username=".urlencode(‘mymail@yahoo.com’)."&password=mypassword&sender=me&message=](http://www.50kobo.com/tools/geturl/Sms.php?username=%22.urlencode('mymail@yahoo.com').%22&password=mypassword&sender=me&message=)”.urlencode(‘This is the message’)."&flash=1&recipients=123’\</script\>";
