How can you transfer a variable such as ask_question
in the URL such that it changes the outlook of your index.php by given rules?
I have the following link in my index.php
<a href="index.php?ask_question">Ask question</a>
which however does not work since I do not know how you can refer to the ask_question -variable in the URL. If I knew that, I could make read it and then customize my index.php according to the name in the URL.
I could also make the following link, but it would cause me to have a lot of duplicate data such as PHP code for login -form.
<a href="ask_question.php">Ask question</a>
My ask_question.php -form
<form method="post" action="handlers/handler_question.php">
<p>Title:
<input name="title" type="text" cols="92" />
</p>
<p>Question:
<div id="wmd-container" class="resizable-textarea">
<textarea id="input" class="textarea" tabindex="101" rows="15" cols="92" name="body" /></textarea>
</div>
</p>
<p>Tags:
<input name="tags" type="text" cols="92" />
</p>
<input type="submit" value="OK" />
</form>