So, I have this button where you type the title and press on "create", here is a photo:

Here is the code:
<div class="input-group margin">
<div class="input-group-btn">
<button type="button" name="artButton" data-toggle="modal" data-target="#createArticle" class="btn btn-danger">Create</button>
</div>
<!-- /btn-group -->
<input type="text" class="form-control" id="artTitle" name="artTitle" placeholder="Article title">
</div>
</div>
What I tried was to surround it with two form tags as POST method and then use $_POST['artTitle'] to echo what the user inserted in the other input but it didn't work.
So basically, when you press on create, a modal shows up asking for information regarding the topic, and I want the title to autofill if you type it in that field before pressing create..., and it doesn't work...
Here is how I tried to add the value to the other input
<?php if(isset($_GET) && array_key_exists('artButton',$_GET)): ?>
<div class="form-group">
<label for="createArticleTitle">Title:</label>
<input type="input" class="form-control" value="<?php echo $_GET['artTitle']?>" id="createArticleTitle" name="createArticleTitle" maxlength="80" placeholder="Insert Article Title...">
</div>
<?php endif; ?>