Use the ampersand &
to glue variables together:
$url = "http://localhost/main.php?email=$email_address&event_id=$event_id";
// ^ start of vars ^next var
More Related Contents:
- PHP session variable issue while using iframe
- PHP Pass variable to next page
- Beautiful way to remove GET-variables with PHP?
- Parse error: syntax error, unexpected T_STRING in C:\wamp\www\b_php\project\login_save.php on line 14 [closed]
- How can I combine two strings together in PHP?
- How to use store and use session variables across pages?
- Test if number is odd or even
- instantiate a class from a variable in PHP?
- PHP curly brace syntax for member variable
- Accessing a class constant using a simple variable which contains the name of the constant
- When and why I should use session_regenerate_id()?
- PHP Session Hijacking
- PHP check whether property exists in object or class
- What is the best way to check if a URL exists in PHP?
- How to prevent PHP sessions being shared between different apache vhosts?
- How to get the value after the hash in “somepage.php#name”?
- PHP function use variable from outside
- Need a good regex to convert URLs to links but leave existing links alone
- What are fragment URLs and why to use them?
- PHP & Sessions: Is there any way to disable PHP session locking?
- How to set session timeout in Laravel?
- PHP: Create an array for a range
- Cookies vs. sessions in PHP
- How to properly handle session and access token with Facebook PHP SDK 3.0?
- PHP Session ID changing on every request
- How to keep a PHP session active even if the browser is closed?
- Same domain, different folder PHP session
- Which is faster? Constants, Variables or Variable Arrays
- laravel – Can’t get session in controller constructor
- How do I save PHP session data to a database instead of in the file system?