# Wtf is going on?

**URL:** https://forum.kirupa.com/t/wtf-is-going-on/94766
**Category:** Uncategorized
**Created:** [November 16, 2003, 4:14pm UTC](https://forum.kirupa.com/t/wtf-is-going-on/94766 "2003-11-16T16:14:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sanman918](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sanman918](https://forum.kirupa.com/u/sanman918)
#### Post date: [November 16, 2003, 4:14pm UTC](https://forum.kirupa.com/t/wtf-is-going-on/94766/1 "2003-11-16T16:14:09Z")

</div>

Ok for some reason this stupid thing wont work. Its a simple test this is what I have. I have 2 files, test.html and test.php  
this is what I have in my HTML file. Its a form that takes on textbox  
\<html\>  
\<head\>  
\<title\>Hehe\</title\>  
\</head\>  
\<body\>  
\<form method= “post”  
action = “test.php”\>  
\<input type = “text”  
name= “test”  
value = “”\>  
\<input type = “submit”\>  
\</form\>  
\</body\>  
\</html\>

Ok and this is what I have in my PHP,  
\<html\>  
\<head\>  
\<title\>Hehe\</title\>  
\</head\>  
\<body\>  
\<?  
print “\<h1\>$test\</h1\>”;  
?\>  
\</body\>  
\</html\>

WHy is it not printing my variable? Its like not communicating at all. I have a lot more complex code and it didn’t work so I tried this and it still wont work. Im a noobie to PHP and I have no idea why its not working. It is uploaded to the server which supports PHP.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 16, 2003, 5:49pm UTC](https://forum.kirupa.com/t/wtf-is-going-on/94766/2 "2003-11-16T17:49:20Z")

</div>

try

```php
print "<h1>".$_POST['test']."</h1>";

```

That’s a feature called Register Globals, which is now off by default.
