Jump to content

mgs019

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by mgs019

  1. I found the easiest way is to use frontpage's interactive button tool to generate the FP_swapimage script or what ever it is called and replace the button images as you wish. You can also make it swap another image by playing with the image id/name tags. Hope that helps. Martin
  2. [i tried: <script> document.write(document.forms['diamond'].elements['colour'].value) </script> Still no luck. in the main body of the page. The page is at www.blood-diamond.co.uk/testbed.php but you have to go to www.blood-diamond.co.uk/shape2.php first and select a shape to pass the post variable. You will see I have used the Yahoo UI sliders to change the form elements values. What I want to do is to get rid of the drop down boxes and just have a string of text saying something like: You have choosen a XXX shape diamond with XXX colour, XXX clarity and XXX carats I thought that maybe if just document write did not work maybe I could use an iframe and a script in the head but I am a bit of a javascript novice so did not know what would work. Any help will be very gratefully received. Martin.
  3. Hi, I want to display the vale from a hidden form element as text in a document. I want it to also change as the value changes with mouseovers etc. This comes from a php generated form so I could do with it all fitting in the <a onmouseover="" part of the page. I tried: document.write(document.forms.myform.myinput.value) but it did not work. I also tried document.getelementbyid("mydiv").innerHTML=document.forms.myform.myinput.value that did not work either I tried all sorts of wierd things. I managed it to alert the value but not write it!! This seems like it should be really easy. Am I missing something in the getting the value part. Please help this is driving me nuts!! Thanks, Martin
  4. Sounds like you need the include() function. in your index.php you have e.g. <?php include('header.php'); include('left.php'); include('main.php'); include('right.php'); include('footer.php'); ?> Setup each page Then in the stylesheet set up an id for the left + right #left { float:left; } #right { float:right; } Then make sure your left and right start and end with <div id="left"> ...</div> When parsed by the server all the bits will be in the correct place. Martin
  5. part of this application requires knowing the root of the host website. I have been using $_server['DOCUMENT_ROOT'] will this give my root or the host root? if it will give the host how do I get it to find where it is? Martin
  6. I am trying to make an application which will run on any webpage. I thought inserting the line <?php include('http://www.url'); ?> would work but it didn't. It just errored at me. Any idea what I can do to get the desired result? Thanks, Martin
  7. I am a bit of a beginner with php. I am writting a portable module in php but I need it to determine the webpage's url so it can check against an sql database whether the site is registered. Any ideas how I could do this? is there a php function like geturl() or something?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.