Forms, php newbie!

Hello All,
Thanks in advance to anyone who reads this and can help me out!
I am completely new to php and i wish to create a form that forwards two variables to another php file.
The other php file will accept the variables ‘phone’ and ‘message’ and lets sat that it is located at ‘’.
routeInboud.php accepts the variables in this format ‘ is some message’.

If anybody can give me a brief demo on how i would go about doing this in php i would really appreciate it!

Thanks again everyone!


$phone = $_GET['phone'];
$message = $_GET['message'];


Additional checks will be required if you’re going to use these in statements though.
Be sure to read up on superglobal variables (this part in particular) to know what you’re doing.

Sponsor our Newsletter | Privacy Policy | Terms of Service