-
Sending information via PHP
Hi Im trying set up a page where users can send their email addy via PHP It works fine when I use one of my own addys (info@aardesign.co.uk) but when I test it on other addys it doesn't work This is the HTML for the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">'>http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>lime_home</title> <link href="limestylesheet.css" rel="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="background"> <div id="peel"><img src="grain.png" width="800" height="500" border="0" /></div> <div id="fresh"><img src="fresh.png" alt="logo" width="570" height="150" border="0"/></div> <div id="soon"><img src="comingsoon.png" width="500" height="100" border="0"/></div> <div id="emailtext">Submit your email to be notified when we go live</div> <div id="bar"><img src="middlebar.png" width="1000" height="68" border="0"/></div> <div id="emailsend"> <form action="feedback.php" method="post"enctype="multipart/form-data"> <input type="text" name="comments" size="50"> <input type="submit" class="submitButton" value="Submit" /> </p> </form> </div> <div id="maintext">Lime4 is a fresh company providing clear thinking and high quality expertise in project management and the development of sustainable solutions. Whether through project development, production of business cases and feasibilities, or more specifically related to the blossoming green and environmental sector.</div> <div id="limelogo"><img src="limelogo.png" width="170" height="135" border="0"/></div> <div id="address">Studio B, Derwentside Business Centre, Consett Business Park Consett, DH8 5BP</div> <div id="details">Phone : 01207 693 913 Mobile: 07729 327 323 e-mail: chris@lime4.co.uk</div> </div> </body> </html> This is the PHP which it is linked to <?php $comments = $_POST['comments']; $to = "info@echographics.co.uk"; $re = " New website email feedback"; $msg = $comments; mail ( $to, $re, $msg ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <h1>Thanks for your email address, we will be in touch.<h1> </body> </html> This is the page in question http://www.aardesign.co.uk/lime/index.html Can anyone help ? Thanking you. Alan.
-
How do I make an area scrollable?
Hi can you take a look at a site Im working on? Im wanting to make the black area scrollable (a scrollbar on the righthand side). (A sort of webpage within a webpage!) The site isnt finished yet thats why there is no content!! http://www.aardesign.co.uk/slideshow/index.php Is there any way I can do this? Also is there any way I can make the background slideshow images fade in and out of each other? Preferably without using Jquery? Ive found this piece of js code : fadeduration 1000, but Im not sure where it goes. Thanking you in advance. Alan.
-
fading images in slide show
rallport -Thanks for that, in your opinion do you think I should abandon the PHP/JS and use the Jquery method instead?
-
fading images in slide show
Hi, Ive got a slideshow which is working fine. However I would like the images to fade in and out of each other. I have found this js code but Im not sure where exactly it goes. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="fadeslideshow.js"> /*********************************************** * Ultimate Fade In Slideshow v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more ***********************************************/ </script> <script type="text/javascript"> var mygallery=new fadeSlideShow({ wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["http://i26.tinypic.com/11l7ls0.jpg",'>http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."], ["http://i29.tinypic.com/xp3hns.jpg",'>http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave",'>http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"], ["http://i30.tinypic.com/531q3n.jpg"],'>http://i30.tinypic.com/531q3n.jpg"], ["http://i31.tinypic.com/119w28m.jpg",'>http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element! ], displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) descreveal: "ondemand", togglerid: "" }) var mygallery2=new fadeSlideShow({ wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow dimensions: [250, 180], //width/height of gallery in pixels. Should reflect dimensions of largest image imagearray: [ ["http://i26.tinypic.com/11l7ls0.jpg", "", "", "Nothing beats relaxing next to the pool when the weather is hot."], ["http://i29.tinypic.com/xp3hns.jpg", "http://en.wikipedia.org/wiki/Cave", "_new", "Some day I'd like to explore these caves!"], ["http://i30.tinypic.com/531q3n.jpg"], ["http://i31.tinypic.com/119w28m.jpg", "", "", "What a beautiful scene with everything changing colors."] //<--no trailing comma after very last image element! ], displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false}, persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) descreveal: "always", togglerid: "fadeshow2toggler" }) </script> THIS IS THE CODE FOR MY SLIDE SHOW: <?php $imageDirectory = "images"; $interval = 5; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Max's Slide Show</title> <link href="nrg_stylesheet.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var picn=0; var picList = new Array; var actImg = new Image(); <?php if ($handle = @opendir($imageDirectory)) { $i = 0; while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $path = $imageDirectory; if(is_file($path.DIRECTORY_SEPARATOR.$file)) { $info = $path_parts = pathinfo($file); if ( (strtolower($info['extension']) == 'jpg') || (strtolower($info['extension']) == 'jpeg')) { $file = addslashes($file); echo "picList[$i] = '$path/$file';\r\n"; $i++; } } } } } ?> function setCountDown () { actImg.src = picList[picn++]; document.getElementById("pic").src=actImg.src; if (picn>=picList.length) picn=0; setTimeout ( "setCountDown()", <?php echo ($interval*1000); ?> ); } </script> </head> <body onload="setCountDown();"> <div id="container"> <div id="header"><div id="header_left"></div> <div id="header_main"></div><div id="header_right"></div></div> <div id="content"> <img src="<?php echo $path.'/'.$file; ?>" alt="pic" id="pic" border="1" /> </div> <div id="footer"><a href="http://www.phpf1.com" target="_blank">Powered by PHP F1</a></div> </div> Can anyone help please ?? Thank you. Alan.
-
slide show for background
Hi the lad Im working for wants a slideshow for the background of his site. Ive got the slide show up and running. Its php and js. Ive tried to attach the php file to the css stylesheet as the background property but it doesnt work. Any suggestions. Thanks. Shedman.
-
HTML5 + Slideshow
I found this and its just what Im looking for. Its not html5 but it is really simple to do - even I sussed it out!!! http://www.phpf1.com/download.html?item=16
-
HTML5 + Slideshow
Hi Ive been asked to do a site with changing images on the home page. The images have to fill the whole page and change every 30 seconds or so, with no user interaction - IE no arrows etc. Something along the lines of this https://www.wetransfer.com/ Im familiar with javascript and php. Or is the a way to do it with HTML 5 ? Thanks Alan.
-
PHP and Cookies
Thanks for that webdesigner93. Ive tried it with the additional code and it works fine.
-
PHP and Cookies
- PHP and Cookies
Thats fine, but how do I adjust the code in order to make it work?- PHP and Cookies
Hi Im learning about PHP and Im teaching myself from a book. Im on to the section about cookies. This is the code I copied from the book: <?php $user = $_POST['user']; $color = $_POST['color']; $self = $_SERVER['PHP_SELF']; if (($user != null) and ($color != null)) { setcookie( "firstname", $user, time()+36000); setcookie( "fontcolor", $color, time()+36000); header( "Location:getcookie.php"); exit(); } ?> <html><head><title>Set Cookie Data</title></head> <body> <form action="<?php echo($self);?>" method="post"> Please enter your first name: <input type="text" name="user"><br><br> Please type in your favourite font color: <input type="radio" name="color" value="#FF0000">Red <input type="radio" name="color" value="#00FF00">Green <input type="radio" name="color" value="#0000FF">Blue <br><br><input type="submit" value="Submit"> </form> </body> </html> This is the code for the second part: <?php $user = $_COOKIE['firstname']; $color =$_COOKIE['fontcolor']; ?> <html><head><title>Get Cookie Data</title> <style type="text/css"> body{color: <?php echo( $color );?>} </style> </head> <body> <h1>HELLO<?php echo ($user);?>!</h1> </body> </html> The first page works but when input the data and press "Submit" I get this:(Please see attachment for screen shot) can anyone see where I am going wrong?? Thanking you in advance ShedHead.- Converting Non WiFi Computer
Thank You for all your comments. ShedHead.- Converting Non WiFi Computer
Hi, apart from my laptop which is WiFi enabled, Ive also got a table top computer (XP) which is not WiFi enabled. My router is Netgear. Im thinking of buying this adapter. Will this enable me to connect my table top to my router? I would appreciate any constructive advice. Thanking you, ShedHead.- Wordpress
Right, Im in the Edit Themes/Appearence/Editor/StyleCSS. Correct me if Im wrong but is it just a case of changing the CSS rules. Also if I want to put an image in the header do I just link it to an image in the hosting server?- Wordpress
- PHP and Cookies
Account
Navigation
Search
Configure browser push notifications
Chrome (Android)
- Tap the lock icon next to the address bar.
- Tap Permissions → Notifications.
- Adjust your preference.
Chrome (Desktop)
- Click the padlock icon in the address bar.
- Select Site settings.
- Find Notifications and adjust your preference.
Safari (iOS 16.4+)
- Ensure the site is installed via Add to Home Screen.
- Open Settings App → Notifications.
- Find your app name and adjust your preference.
Safari (macOS)
- Go to Safari → Preferences.
- Click the Websites tab.
- Select Notifications in the sidebar.
- Find this website and adjust your preference.
Edge (Android)
- Tap the lock icon next to the address bar.
- Tap Permissions.
- Find Notifications and adjust your preference.
Edge (Desktop)
- Click the padlock icon in the address bar.
- Click Permissions for this site.
- Find Notifications and adjust your preference.
Firefox (Android)
- Go to Settings → Site permissions.
- Tap Notifications.
- Find this site in the list and adjust your preference.
Firefox (Desktop)
- Open Firefox Settings.
- Search for Notifications.
- Find this site in the list and adjust your preference.