Append variable at end of URL - PHP

append, php, url, variables

Solution

Append it like so

$name = $_GET['smsname'];
$call = $client->account->calls->create('+103632', $number,                                             
        'http://google.com/script.php?name='.$name
    );

And in the next page you can get it using `$_GET['name']`

Problem

I want to append the variable $name to the URL http://google.com/script.php so that I can call the variable in another script. How do I modify the following code without having those syntax errors? Thanks. Codes: ``` $name = $_GET['smsname']; $call = $client->account->calls->create('+103632', $number, 'http://google.com/script.php' ); ```

Original source