...

View Full Version : Simple HTML problem (I think)



jrp1
07-11-2008, 08:31 PM
I have a problem that I believe has a simple answer.

I'm working on an image uploading script. If, for some reason, you try to upload an unrecognized file type, it will say "You selected the wrong filetype!". Problem with this is, there's no background, so the background image of my site makes the text hard to read.

Basically what I want is to make the background white, but it looks like PHP or something unfamiliar. Im not too great with coding.

Here's the code:


}

else
{
echo "<font color=\"#333333\" face=\"Geneva, Arial, Helvetica, sans-serif\">You selected a wrong filetype!</font>
<br>\n"; exit;
}


Is there a simple line I can add in there somewhere that makes the BG white? I already tried a few things and no luck.

Thanks in advance.

jrp1
07-11-2008, 08:40 PM
Okay, instead of just changing the background color, I'd like to redirect it to another page. So I tried:


}
else
{
echo "<meta http-equiv="refresh" content="0; url=http://www.google.com">
\n"; exit;
}

And it didnt work. How do I make it so instead of saying "You selected a wrong filetype!", it redirects instead? Thanks :D

Pepe, the bull
07-11-2008, 08:59 PM
In your first example, you have a backslash before every quotation mark in the font tag. Do you have to do that here as well?


}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0; url=http://www.google.com\">
\n"; exit;
}

Is there any way to find out what script language you are using? There's probably a better alternative.

jrp1
07-11-2008, 09:05 PM
Worked. Thanks alot, bud. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum