Search
Left Quote    Copy from one, it's plagiarism; copy from two, it's research.
- Wilson Mizner    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Php Float issue maybe?
  This user is offline  jcochran73ss
  Subject: "Php Float issue maybe?" Posted: @ 9:30 pm on Oct 05 2009   
Member #: 1060
Rank: User - (1)
Since: 10/05/09
Posts: 1

Im trying to make content load from the database for each button. which works fine. the problem is when you first go to my page I have some content in the same box that the buttons load into. So when I push a button the content loads but that content that was originally there just gets pushed down. if I push another button it replaces the other button's data (which I want) but still that content that is there when you load the page stay's. How do I make it so that content replaced, or covered up when I hit a button.
http://www.dann sacademyofdance .com/dancephp.p hp


Code:
<div id="image1 ">
<br>< br /><br /><br> <br /><br /><br> <br /><br /><br /><br /><br /><br>

<center>
<h2>
<form name="home " action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="homeb utton.jpg" value="hom e" name="home " ><img src="vline .jpg">< br />
<form name="sche dule" action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="sched button.jpg" ; value="sch edule" name="sche dule" ><img src="vline .jpg">< br />
<form name="gall ery" action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="galle rybutton.jpg&qu ot; value="gal lery" name="gall ery" ><img src="vline .jpg">< br />
<form name="dire ctions" action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="direc tionsbutton.jpg " value="dir ections" name="dire ctions" ><img src="vline .jpg">< br />
<form name="tuit ion" action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="tuiti onbutton.jpg&qu ot; value="tui tion" name="tuit ion" ><img src="vline .jpg">< br />
<form name="part ies" action="da ncephp.php" ; method="po st" enctype='multip art/form-data'& gt;
<input type="imag e" src="parti esbutton.jpg&qu ot; value="par ties" name="part ies" >
</h2>
</center> ;

</div>
<div id="page&q uot;>

<body bgcolor="# 000000" text="#fff fff" link="#fff fff" alink="#12 6666" vlink="#ff ffff">& lt;/body>








<div id="image2 ">

<div id="image3 ">

<div id="image1 0">
<p><im g src=" .jpg">& lt;/p>
<h2><b ig>Why D'Ann's?</bi g></h2> ;

<p>Since 1978 thousands of students have taken dance classes at our facility, more than any other studio in Concord, Pleasant Hill or Martinez. We started as a very small studio but have grown to become one of the largest dance studios in central Contra Costa County. </p>
<p> As a parent we realize you have a choice between several different dance studios. All studios are not the same. We constantly improve our facilities and provide ongoing training to our staff to ensure we are always providing our students and parents with the best experience possible.</p >

<p>Today, as in 1978, there are several different studios to choose from. We invite you to compare all of the features and options to see why our dance studio has been chosen more than any other.</p> ;

<h2><b ig><cente r>Five reasons which make us the best choice for you </center> </big</h2 >

<p><h3 ><big> Smaller Class Sizes</big&g t;</h3>
<p>Our smaller class sizes allow students to get more individual instruction from teachers, and as result progress at a faster level than in a large class environment. Our smaller class sizes also ensure that the teacher can catch any problems before they turn into bad habits or improper techniques.< /p>

<h3><b ig>Variety of Dance Styles & Methods</big ></h3>

<p>Highly qualified all adult teachers with varied training and teaching methods are available to teach a broad range of dance formats.</p& gt;

<h3><b ig>Customer Service</big ></h3>

<p>Our studio has office staff on hand during all regular class times, so you can get immediate assistance. We excel at making our student's not only feel welcome but also excited and excepted. </p>

<h3><b ig>Preschool Dance


    Viewed: 3,403 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Php Float issue maybe?" Posted: @ 10:40 pm on Oct 11 2009    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

I visited the URL, not seeing the problem.

If you have content that will be displayed unless a button is clicked, then you could set session variables that change when X buttons are clicked. Then on your page, you could provide a conditions before the default data is displayed: if session_variabl e['clicked'] = 1 then display button data, else - display default data. Seems kind of qwerky though... Why wouldn't you have a different file for the different buttons? i.e. button 1 loads button1.php, button 2 loads button2.php. Then only include the data you want in those pages?




-bs0d | AllSyntax.com

    Viewed: 3,371 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank