-
Secure IMG SRC
Thank you everyone for your replies. Unfortunately I have never used .htaccess files before. I am going to investigate this some more in the future. For now we are going down the # file name route while I learn 1) what .htaccess is and 2) how to use it. Thanks guys. I learned something new
-
Multible <div> tags on one line
There are two ways that I know of which will achieve this. One is by applying the value "float: left;" to the CSS for each div. #left { width: 100px; margin-left: 10px; float: left; } #middle { width: 100px; margin-left: 10px; float: left; } #right { width: 100px; margin-left: 10px; float: left; } You could also, if you know the exact width of your page and where they are going to be upon it, use absolute positioning. #left { width: 100px; position: absolute; left: 10px; top: 10px; } #middle { width: 100px; position: absolute; left: 120px; top: 10px; } #right { width: 100px; position: absolute; left: 230px; top: 10px; } It depends on which one works best for your page. Have fun
-
legality....
MorgueFile My Personal favourite
-
Redirecting Page
If you server allows, you could also use a PhP header, placed at the very top (Even above the doctype) of your .com page. <?php header("Location:http://mydomain.com/concept/"); ?> which would automatically direct any visitor to your new page. Whether or not it is better than htaccess though I don't know, as I have never used htaccess. Probably best to try both and see which you prefer.
-
Tableless Design. What it is?
Speaking as someone who has designed websites with both, while tables are easier, tableless designs are far better in the long run. Not only can you do more with them, but they are better for accessibility. Not to mention that they make for a tidier code
-
how to show the itmes on a mysql data base on webp page
No problem. Happy to help
-
Secure IMG SRC
Hi all Got a problem. I have a web page that is accessible only by password, and I want it to show images among the content. Of course, these images have to be as protected as the web page and I would like them to be impossible to reach otherwise, bit like on a secure Photobucket account. So I thought about putting them in a folder above the root and then linking to that, so that they can literally only be viewed through the password protected web page and nowhere else, not even by direct hyperlink. Only problem is that <IMG SRC...> refuses to link to the image when I do this. Even though I clearly state in the HTML code <img src="../image.jpg" it just goes right back to http://www. etc. I next tried doing a PhP include_once command, and that just totally didn't work. I even tried seeing if I could alter permissions on a folder in the root file, but every time I make a change to this in dreamweaver, it just goes right back to the default setting as soon as I press okay. My keyboard is in grave danger of being destroyed by my forehead. Any suggestions? Cheers
-
how to show the itmes on a mysql data base on webp page
You need to use mysql_query and mysql_fetch_array. As an example, if I have a MYSQL table with names and genders NAME Melody GENDER Female NAME Terance GENDER Male NAME Tegan GENDER Female NAME Blair GENDER Male To call the table into a webpage I type <?php $query = mysql_query("select name, gender from table"); <!-- This can be any sort of MySQL query, including limits, order by, joins etc--> while ($result = mysql_fetch_array($query, MYSQL_ASSOC)) { echo "<p><i>" . $result['name'] . " " . $result['gender'] . ",</i></p>"; } ?> This should produce a list along the lines of Melody Female, Terance Male, Tegan Female, Blair Male, Important things to note are the double )) at the end of MYSQL_ASSOC (I am always forgetting that) and the periods between $result['name'] and the " " in which the HTML code is embedded. Hope that helps
-
PHP Mail Form Styling
Have you tried to alter the layout of an existing PhP script using CSS? If you find where the script actually creates the form, which I imagine (I’ve never actually seen one) will look something like this… echo “<form id=\”name_of_form\” … echo “<input type=\”text\” id=\”name\”… echo “<input type=\”text\” id=\”email\”… Then should be possible to create CSS styles for #name, #email etc and just alter the layout like you would with an HTML document, using margins or absolute positioning. Hope that helps
-
My first webpage
I like it It's simple, too the point, informative and most importantly easy to navigate. Well done The red rollovers is okay, if maybe a little harsh against the blue background. It does not make it difficult to read though. It matches the page titles for consistency of style as well. Again, well done. First page down of what is sure to be many good ones.
-
HELP with CSS in Safari & Opera
Ah. I see what you mean (viewing http://www.boyledesigns.com/aurtravel/html...oup_travel.html in both Firefox and Windows Safari). I've never seen that before. Not sure what to suggest. Would you mind if I copied and pasted the source code and had a play around with it, see if I notice anything?
-
$newmember = true;
Whoops! Sorry. That was my bad. Whenever I have a copy of a page in the "testing ground" for new additions and features, I add a piece of code that redirects every ISP except mine away from the page. I forgot to remove it before putting the page back from the last update. It should be working now As first impressions go, probably not my best
-
$newmember = true;
Hi everyone at WDF My name is Jan and I am a twenty-something living in south UK. I recently graduated with a degree in media writing, and I dream of one day being the next J K Rowling. Unfortunately, becoming a successful author is a bit like throwing ten coins up into the air and having them all land on heads, so I am also looking to boost my skills in my other love, web design and coding, as a second source of income (Or first, depending on how it all goes). I am the resident web designer and webmaster for a family run business in Wiltshire. I also own my own website, http://www.jandoncom.com where I showcase my work and generally blog about random stuff. I tend to use the WYSIWYG Dreamweaver CS3 and hand coding. I am currently (by currently I mean I started this afternoon) learning Javascript. I am also able to hand code in HTML (and am familiar with XHTML), CSS, PhP and MySQL code. I am mostly self taught in all of these. Other interests are Farscape, NCIS, Torchwood, and computer games. My preferences in PC Games is “story based” and/or open ended strategy game play. The Sims 2 is currently in the mail, the Sims 1 having finally become boring after five years of loyal service. Looking forward to meeting you all -Jan