Hey, I know C# well but i am struggling to find this one on the internet, if anyone could help me that would be wonderful, ty.
How are you trying to do this?
It is simple variable assignment, the same in any other language.
The user can either directly submit it through a get variable (yourfile.php?name=Jim) or set it as a cookie, then use it in PHP ($_GET[‘name’] or $_COOKIE[‘name’])
Or more realistically, create a form that submits to a php file and then you will have all form fields as post or get variables
simple example
[php]<?php
if (isset($_POST[‘name’])) {
echo ‘Hey ‘.$_POST[‘name’].’!’;
}
?>
What's your name? [/php]