У меня сейчас есть этот код на странице / div, когда вы загружаете его без чего-либо в строке URL (a.k.a просто index.php)
<?php echo"<h1>For all of your Citation needs!</h1>
<div >
<p>
This page is for any citations you would need to make for reports or essays. Once you enter in the needed information for your sourse, it will spit out the citations in <a href='http://owl.english.purdue.edu/owl/resource/747/01/'>MLA</a> & <a href='http://owl.english.purdue.edu/owl/resource/560/01/'>APA</a> format.</p>
<p >In development is a system where your citations are stored in a database and everytime you make a new one, you will be given related reference material to help your research. Also available soon will be the ability to look up references using related fields such as:</p>
<ul>
<li>Authors</li>
<li>Ttile of Work</li>
<li>Publishing Company</li>
<li>Journal Publisher</li>
<li>Academic Source</li>
<li>Something else will go here</li>
</ul>
</div>"; ?>
Когда я нажимаю ссылку на сайте, чтобы загрузить другие данные формы (index.php? Form = book) , я хочу, чтобы данные формы заняли место, уже находящееся в этом разделе ... например:
<?php
switch ($_GET['form'])
{
case 'book':
?>
<form method="POST" action="thispage.php">
<input name="" type="text" value="fghfghfghfghfghfh" />
</form>
<?
break;
case 'b': // show form b
?>
<form method="POST" action="thispage.php">
<!-- form b elements here :) -->
</form>
<?
break;
case 'c': // show form c
?>
<form method="POST" action="thispage.php">
<!-- form c elements here :) -->
</form>
<?
break;
}
?>
Есть ли способ, чтобы блок ^ THIS ^ кода PHP занял место другого блока кода php, когда на странице / div при нажатии на ссылку для загрузки данных формы?