hi... first of all i want to give thanks for those who give time for this...
i want to load different php file in my div tag under index.php when ever i click a button, the problem is i dont know how... ^_^
here is my code on my index.php
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="submit" name="button" id="button" value="1st Page" onclick="" />
</label>
<input type="submit" name="button2" id="button2" value="2nd Page" />
<input type="submit" name="button3" id="button3" value="3rd Page" />
<div id='phphere' style="height:400px; width:600px"><?php include('1st.php'); ?></div>
</form>
the other php files are named 1st.php, 2nd.php and 3rd.php
so instantly when the page load 1st.php is inside the the div tag.
all i want is when i click on the button2 1st.php will be replaced by 2nd.php and when i click on button3 any of the php file will be replaced by 3rd.php and also when i click on button any of the php file which is inside the div tag will be replaced by 1st.php. i just hope you could understand what i'm saying even thou its hard to explain... hehe
thanks in advance... ^_^
i want to load different php file in my div tag under index.php when ever i click a button, the problem is i dont know how... ^_^
here is my code on my index.php
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="submit" name="button" id="button" value="1st Page" onclick="" />
</label>
<input type="submit" name="button2" id="button2" value="2nd Page" />
<input type="submit" name="button3" id="button3" value="3rd Page" />
<div id='phphere' style="height:400px; width:600px"><?php include('1st.php'); ?></div>
</form>
the other php files are named 1st.php, 2nd.php and 3rd.php
so instantly when the page load 1st.php is inside the the div tag.
all i want is when i click on the button2 1st.php will be replaced by 2nd.php and when i click on button3 any of the php file will be replaced by 3rd.php and also when i click on button any of the php file which is inside the div tag will be replaced by 1st.php. i just hope you could understand what i'm saying even thou its hard to explain... hehe
thanks in advance... ^_^