Everything posted by hypnoticstate
-
Why won't my CSS loaded images display in IE8 only?
Perhaps it's his local settings then. Can anyone think what could be set on his computer to make it display incorrectly?
-
Why won't my CSS loaded images display in IE8 only?
One of my websites is having problems. It displays fine on my computer (Windows 7) in all browsers but my customer says that it doesn't show properly on his computer in IE8 (Windows XP). Since I don't have XP, it's even more difficult for me to fix this one. The problem is that any images which are meant to be loaded in the CSS file don't load. The actual site structure DOES work from the CSS and images loaded from the page's HTML code load so I can't see why only images in the CSS file won't load. I have attached a screenshot that my customer sent me to show the error. If you have Windows XP and IE8 and could take a look, that'd be great. Site is http://tinyurl.com/ycaqoet
-
How do i make a form whith fields that change
Damn, here's me hoping there'd be a simple html solution. Thanks people.
-
How do i make a form whith fields that change
I've found an example of what im after. If you go to http://www.nvidia.co.uk/Download/index.aspx?lang=en-uk you'll see that once the top field is changed, this changes the options in the other fields. It is this that i want to be able to do. Anyone know how?
-
How do i make a form whith fields that change
I don't think what i need to do needs AJAX. Although i'm sure AJAX would do something similar, i'm certain there's a more simple way of achieving what im after.
-
How do i make a form whith fields that change
Could anyone tell me how to do the following: I want to make an html form (simple enough) but i want it so that it has a few drop down lists in it. When a user makes a choice in the first drop down list, i want the following drop down list to only display choices related to the choice the user made in the previous drop down list. Hope that makes sense.
-
Can anyone help with some css?
Right you are, silly me! It's a bad habit of mine which i really should break; i always put px after it. Never again!
-
Background Transparent
You can set the wmode to transparent but that's for SWF files. <param name="wmode" value="transparent" />
-
Can anyone help with some css?
as above but alternatively border:0px; } Hey, every byte counts.
-
Required field validation not working
That fixed it, thanks very much!!!!!!!
-
Required field validation not working
Thanks very much, can't add this right now but will tomorrow. I'll let you know if it fixes it. Much appreciated!
-
Required field validation not working
Hi. I really know little to nothing about PHP at all. My limit is to more or less understand one PHP mail script I have except for this bit which is annoying me. I have a contact form on my website and a php file to which the form gets posted to (i dont even know the correct terminologies here). This all works, however I'm modifying it for another form. It's nearly identical but on the new form i want 3 required fields and not 2 like in my old working form. Bellow, you'll see the code as it was which works and then the new code which doesn't work. It gives me the following error: "Parse error: syntax error, unexpected $end in mail.php on line 36". code that works with 2 required fields. <?php $to = "my@email.com"; $from = $_REQUEST['Email']; $name = $_REQUEST['Name']; $message = $_REQUEST['Message']; $headers = "From: $from"; $subject = "Website Enquiry"; $fields = array(); $fields{"Name"} = "Name"; $fields{"Email"} = "Email"; $fields{"Organization"} = "Organization"; $fields{"City"} = "City"; $fields{"Message"} = "Message"; $body = "Details submitted:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } $headers2 = "From: my@email.com"; $subject2 = "Thank you for contacting us"; $autoreply = "Thank you for contacting us"; if($name == '') {print "You have not entered a name, please go back and try again.";} else { if($from == '') {print "You have not entered an email address, please go back and try again.";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send) {header( "Location: http://www.website.com/sent.php" );} else {print "There was an error sending your request. Please try contacting us direct at my@email.com"; } } } ?> code that doesn't work with 3 required fields <?php $to = "my@email.com"; $from = $_REQUEST['Email']; $name = $_REQUEST['Name']; $message = $_REQUEST['Message']; $headers = "From: $from"; $subject = "Website Enquiry"; $fields = array(); $fields{"Name"} = "Name"; $fields{"Email"} = "Email"; $fields{"Organization"} = "Organization"; $fields{"City"} = "City"; $fields{"Message"} = "Message"; $body = "Details submitted:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } $headers2 = "From: my@email.com"; $subject2 = "Thank you for contacting us"; $autoreply = "Thank you for contacting us"; if($message == '') {print "You have not entered any message.";} else { if($name == '') {print "You have not entered a name, please go back and try again.";} else { if($from == '') {print "You have not entered an email address, please go back and try again.";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send) {header( "Location: http://www.website.com/sent.php" );} else {print "There was an error sending your request. Please try contacting us direct at my@email.com"; } } } ?> The only difference is that in the newer version, I've added: if($message == '') {print "You have not entered any message.";} else { ...and as someone who knows nothing about PHP, it has me stumped why this won't work. Surely it's an exact copy of the other two required fields validators that are there. Any help is greatly appreciated!
-
Should I host all my customers websites on my account?
oops, thought he was talking to me
-
Should I host all my customers websites on my account?
http://www.vidahost.com/. Excellent company, excellent customer service, excellent prices. Only good reviews for them wherever you look.
-
Should I host all my customers websites on my account?
Thanks for you help I have 4 at the minute (all of which have been paid for already on 2 year hosting plans), a website of my own a i made a while back, 2 websites being built at the minute and a soon-to-be (long over due) portfolio website of mine. So at the end of the foreseeable future, that's 2 websites of mine, 2 websites without hosting yet and 4 websites which all have between 1-2 years left before i need to re-buy or switch hosting on. The next year is anyone's guess because I'm so new at it that I haven't got a clear estimate on how many I'll get.
-
Should I host all my customers websites on my account?
Not in my case. The hosting company I'm with (Vidahost - highly recommended) Do a basic hosting package for £17 PA (-vat) and their smallest reseller account is £149 PA (-vat). So, I'd have to have 8 websites hosted before it paid off, not one.
-
Should I host all my customers websites on my account?
That I am Reseller accounts cost a bit much for my budget (which will increase as i get more work). So what should i do assuming i dont use reseller accounts?
-
Should I host all my customers websites on my account?
Hi. I'm a freelance web designer (only been going for a little while now). Something which I've often wondered is what to do for customers hosting. I.e. Let's say I've set up web hosting for my own website with a hosting company. That means that I now have an account with that hosting company. I can then use that account to manage multiple websites if i host them with that same company. What i want to know is, when getting my customer's hosting sorted, should I just use my own account to do it or create a separate account? Up to now, I've been creating separate accounts because i think if they ever wanted to take full control of their website rather than have me run it for them then they'd need access to their web host. If I'd set it up in my existing account, they wouldn't be able to do this. So, i suppose there isn't a direct answer to this but if anyone can give their thoughts, opinions and what you normal do then please do so; you'd be helping me out a lot.
-
How to make a floating div size expand another, lower div tag
Can't get this online right now i'm afraid. min-height didn't work sadly. For some reason, the containing div doesn't expand its height to match divs within it, if that helps anyone understand.
-
How to make a floating div size expand another, lower div tag
Hi. I got a CSS problem. I've attached a screenshot to show my dilemma. Essentially, the background image that you can see is the div that is meant to contain most of the content within my web page (we'll call it div 1). Within this div 1 is another div (div 2) which contains the two columns of text and within that div tag is two others, one for for each separate column (div 3, twice). Div 1 has the image that you can see set as its background image. It also has white as a background colour. It is set to a set height so that the full background image is always visible. When i write in the columns (div 3's, within div 2) and the text gets further down than the BG image of div 1, I want div 1 to expand and show the white colour background, rather than just sticking to its set height and letting the text go over its bottom edge. If anyone managed to follow that, how do i achieve this? Thanks. Edit: div 3's are currently set to float left so they are visable over the bg image div.
-
How do i make content outside of div parameters invisible?
Thanks very much
-
How do i make content outside of div parameters invisible?
Hello. I have a section on my website which is (for example purposes) 300px wide and 900px high (the width isn't a problem so ignore that). This div is an area for me to have text. If i write lots of text, it eventually goes further down than the height of the div tag and keeps displaying. How do i make it so that when the text gets to the bottom edge, instead of going over the border, it becomes hidden from that point? Hope this makes sense.
-
Would this hide my email address from spam spiders?
But it IS visible in the HTML code on a browser. I've got stuff to do right now so i'll post tomorrow to try and re-explain.
-
Would this hide my email address from spam spiders?
I think you've pretty much got it. So, yes or now, due to what you've just told me, does that mean that the script in 'email.php' would therefore not be visible to spambots?
-
Would this hide my email address from spam spiders?
Really appreciate the answers so far but i still don't have a yes or no answer to my original question. To clarify, the code that i wrote which can be seen above is on an HTML page (though obviously saved as .php). So even though the source code (when editing) of the html page shows the php code that i showed above, when it's viewed by a visitor by going to view>source in the browser, the php code is replaced by the coding that is located in the file that it points to (email.php). I want to know if, since when a visitor comes to the website they can see the code of both the contact page and "email.php" file, does this mean that a spam crawler will also be able to see this or will the spam crawler see the file as it is before the php has grabbed the info from "email.php"?