```
<?php

$current_subject = $_GET['subject_id'];
$current_content = $_GET['note_id'];

echo "<form method=\"post\" action=mainpage.php?subject_id=".$current_subject."&note_id=".$current_content.">";

?> 
  <input type='text' name='list_item' value=''>
  <input type='submit' name="new_item" value="New Item">   
</form>

```

The problem is that when one of the `GET` variables is two words the link doesn't write it that way. So for example if `$current_subject="Advanced Chemistry"` and `$current_content="Valence Electrons"` the link will come out as:

```
<form method=​"post" action=​"mainpage.php?subject_id=Advanced" chemistry&note_id=​"Valence" electrons>​

```