|
Posted by J.O. Aho on 07/31/06 14:11
Ian Davies wrote:
> Hello
> I would appreciate some help from someone who has knowledge of working with
> css, php javascript and how they interact.
> Ive been working on a task for the last few days and have started to hit a
> brick wall. I need general advice on whether I m tackling the problem the
> correct way and some solutions for my current problems
>
> Ive posted my project below where ive detailed the current problems im
> having
> http://www.iddsoftware.co.uk/test.php
>
> in short im trying to allow my users to take their records from my database
> and arrange them dynamically on a web page into custom reports. which they
> can them print directly or download into something like Word
>
> Hope you can help as that brick wall is looming
Javascript ain't my strong point, so I will just think about php and css.
First of all you should have some default starting points, as you already
have. Store those into variables, as $xh1=40;, you will also need to check if
the page has been updated or show for the first time, you can add the
<input name="updated" type="hidden" value="1">
to your form
in your php you will need to make a check something like
if($_REQUEST['updated']==1) {
$xh1=$_REQUEST['xh1'];
} else {
$xh1=40;
}
Then you have your inputs in html
<input name="xh1" class="BodyText" value="<?PHP echo $xh1;>" size="1" type="text">
You should include the css code that handles the location of the text in the
php file, and with usage of php in the same manner that in the input tag, you
will dynamically change the coordinates in the css/style part of the code.
//Aho
[Back to original message]
|