Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. Managed to get rid all the errors apart from those from the SESSION .. I've also tried ini_set("session.use_only_cookies", 1); and that didn't work either ..
  2. Thanks for the help, but it's still not working ... http://validator.w3.org/check?uri=http%3A%2F%2Fwww.minimerc.co.uk%2Fnew%2Fshop.php%3Fc%3DE-Class%26m%3DW114-W115
  3. i wasn't sure where to post this, as i wasn't sure how it would be fixed. I'm trying to get my webpage to validate as strict XHTML, there's 1 or 2 errors i know how to fix, but this one i'm not sure... basically, the server appears to be generating "PHPSESSID=blahblah" (sometimes) on links and forms. Of course this means it's using "&PHPSESSID=blahblah" which means it's not validating. http://www.minimerc.co.uk/new/shop.php?c=E-Class&m=W114-W115 (not much works yet so no point in trying to view other pages) How can I stop the server from doing this (i have .htaccess rights, but cannot change the server configuration directly) - Thanks!
  4. I'm trying to create a simple flash slideshow for a website i'm creating. I'm currently creatign a very simple preloader for it. i have a movie clip with the instance name of "loadbar" which I will make bigger to represent how much has been loaded - fairly standard. Here's my script at the moment: setProperty(loadbar,_width,0); b_loaded = getBytesLoaded(); b_total = getBytesTotal(); l_width = 185; while (b_loaded < b_total) { p_loaded = b_loaded / b_total * 100; single = p_loaded / 100; new_width = single * l_width; setProperty(loadbar,_width,new_width); b_loaded = getBytesLoaded(); } gotoAndPlay(2); But when I "Simulate" the download, it's causing an endless loop and crashing the program. Anybody know why it's not working ?? -Thanks
  5. basically, i've created a website for my boss' company. Probably the main page is the shopping page - shop.php - there's not so much a problem, just that it looks very ugly. For example, when viewing a particular model, the address looks something like: .../shop.php?c=SL-Class&m=W194&id=G4 I've seen somewhere using "mod_rewrite" (or something) you can make a better looking address, such as: .../shop.php/SL-Class/W194/G4 Anybody know anything of this? -Thanks
  6. what excactly do you want to do?
  7. For a website I recently made, I created a file called "image.php" and used a parameter ("url") to locate the image. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Image: <?php print $_GET['url']; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body { background-image: url('images/img-bk-cross.gif'); margin: 0px; } </style> </head> <body> <img src="<?php print $_GET['url']; ?>" alt="" /> </body> </html> I used this for an "enlarge image" type of thing, and because the company had all their product images the same size, I used javascript to size the window. Looked much better than having a lot of whitespace in the window. If you wanted, you could make it more adavanced by adding captions and titles. To do this, you could either assign an id to the image, then use a parameter like: "id=34" to identify the url, and caption; titles anythign else you'd want. OR, you could use the image path from the root (eg. images/catalog/34.jpg). - Obviouslly the captions and titles would be stored in a database. If you are interested in storing the ACTUAL image in the database, it would have to be some kind of binary or encryption used.
  8. I know how to use AJAX and PHP - And upload files the normal way. When i send the ajax though, how i send the file location (eg. C:\.....\myfile.ext), as it wouldn't register as a "FILE" object. - thanks
  9. Hi everyone, is there a way to upload files using PHP and AJAX? Anyway at all? - Thanks :: MODIFIED ::
  10. Adam

    Date Help

    If i had a date in the format: "DDMMYY" (for example: "251207" - christmas 2007) how can I check if that date is in the future, or already past? -Thanks
  11. number_format($price, 2); - has worked great thanks !
  12. I have created a shopping cart script and all works perfect, apart from the totals! They are returning as £20.5, £19.8, etc, when the last number is a 0. How do i stop PHP from removing the 0's ? -Thanks
  13. you can't. php is server side and javascript is client side. php is parsed before the page is loaded, it cannot function in the same way as javascript.
  14. hi, im trying to position a div on the screen using javascript to be in the bottom right corner .. then i want to animate the div to create a very similar effect to msn (when a contact signs in). does anybody know how i can position the div in the bottom right corner?
×
×
  • 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.