![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
Dig in
Hey People of CodingForums.com
please go as harsh as you like for www.jamiewest.org.uk please note I know there is no page for food at the moment. ill check back later for feedback thanks in advance. Rafiki
__________________
Get Firefox Now |
|
|
|
|
|
PM User | #3 |
|
Supreme Master coder! ![]() ![]() Join Date: Dec 2004
Location: In a place far, far away...
Posts: 17,190
Thanks: 2
Thanked 732 Times in 713 Posts
![]() ![]() ![]() ![]() |
The font-size is a little small. I was expecting the tabs to have rounded corners as well but they didn't. Don't use XHTML1.1 if you don't know how to pass the correct headers. Its an XHTML template yet you have some elements that are in uppercase. All elements need to be in lower case. Hmm it also looks like register globals is on. Type this in your address bar and watch what happens to the subject field.
Code:
http://www.yoursite.com/contact.php?subject=this is a test
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
|
|
|
|
|
|
PM User | #4 |
|
Senior Coder ![]() Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,501
Thanks: 5
Thanked 64 Times in 63 Posts
![]() |
Loks wise it's fine. Along with the coding... you have all your headers as H1's. Might want to look into changing that. A min-width would be a nice touch as well.
|
|
|
|
|
|
PM User | #5 | |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
Quote:
i use PHP Code:
also i dont no how to round the corners lol i should increase the font size to? @ others, min width? max width?
__________________
Get Firefox Now Last edited by rafiki; 03-01-2008 at 12:10 PM.. |
|
|
|
|
|
|
PM User | #6 | |
|
Master Coder ![]() Join Date: Mar 2007
Location: God's own country
Posts: 8,976
Thanks: 142
Thanked 1,192 Times in 1,184 Posts
![]() ![]() ![]() ![]() |
Code:
value="<?php if(isset($_GET['subject'])) { echo $_GET['subject']; } ?>"
Also apply float:left; and some suitable width for your labels(Name, Subject etc.) in contact form, which will align them well.
__________________
Quote:
Last edited by abduraooft; 03-01-2008 at 12:17 PM.. |
|
|
|
|
|
|
PM User | #7 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
no because when the page loads from a link in my site the value shown in the box is from $_GET then it will check $_POST when form is submitted
also rounded corners? Code:
-moz-border-radius: 15px 15px 15px 15px;
__________________
Get Firefox Now |
|
|
|
|
|
PM User | #8 | |
|
Master Coder ![]() Join Date: Mar 2007
Location: God's own country
Posts: 8,976
Thanks: 142
Thanked 1,192 Times in 1,184 Posts
![]() ![]() ![]() ![]() |
Aah.. that's fine (I see your links to contact page.)
But, if you'd like to validate the form data, before sending to you/posting to DB, then you may have to change that part. Say else echo $_POST['subject']; along with the errors.
__________________
Quote:
|
|
|
|
|
|
|
PM User | #9 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
ill show you whole code you'll see how it works.
PHP Code:
ill check after work, got called in :@:@
__________________
Get Firefox Now Last edited by rafiki; 03-01-2008 at 12:30 PM.. Reason: called to work |
|
|
|
|
|
PM User | #10 | |
|
Master Coder ![]() Join Date: Mar 2007
Location: God's own country
Posts: 8,976
Thanks: 142
Thanked 1,192 Times in 1,184 Posts
![]() ![]() ![]() ![]() |
isset($_POST['subject']) is not enough to check whether someone filled this or not. You have to check the length or at least PHP Code:
BTW, remove the email id from the above post, spammers can read it.
__________________
Quote:
Last edited by abduraooft; 03-01-2008 at 01:29 PM.. |
|
|
|
|
|
|
PM User | #11 |
|
Supreme Master coder! ![]() ![]() Join Date: Dec 2004
Location: In a place far, far away...
Posts: 17,190
Thanks: 2
Thanked 732 Times in 713 Posts
![]() ![]() ![]() ![]() |
You spelt subject wrong. Also why are you using mysql_real_escape_string? What are you putting into a database?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
|
|
|
|
|
|
PM User | #12 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
nothing it still removes the danger element though right? ill change subject now, and the guessit@jamiewest.org.uk email address doesnt exist, its a cover for what its meant to be
__________________
Get Firefox Now |
|
|
|
|
|
PM User | #13 |
|
Supreme Master coder! ![]() ![]() Join Date: Dec 2004
Location: In a place far, far away...
Posts: 17,190
Thanks: 2
Thanked 732 Times in 713 Posts
![]() ![]() ![]() ![]() |
I'm guessing you are connecting to a database already then or that function call would fail without one. As to the rounded corners that only works in Mozilla based browsers. There isn't much to review on your site as you didn't actually code the front-end. I'm guessing everything else is just a blog, wordpress perhaps. I had a contact form that was getting spammed 5 times a minute. I then found this article: http://www.phpbuilder.com/columns/ia...n20060412.php3
Now I haven't received any spam since I've implemented the suggestions in the article. You can also use something like this to prevent emails that contain nothing but links. PHP Code:
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
Last edited by _Aerospace_Eng_; 03-01-2008 at 05:19 PM.. |
|
|
|
|
|
PM User | #14 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
i added
http://www.ilovejackdaniels.com/php/...ss-validation/ and will take a look into that article. a good thing is im not indexed in google yet so spammers wont find my contact form at the moment. @aero i also included the contents of that article, if you would be so kind as to test i would be most gratefull
__________________
Get Firefox Now Last edited by rafiki; 03-01-2008 at 05:29 PM.. |
|
|
|
|
|
PM User | #15 |
|
Senior Coder ![]() Join Date: Aug 2006
Location: Floating around somewhere...
Posts: 1,989
Thanks: 18
Thanked 42 Times in 42 Posts
![]() |
how can i round corners in all browsers?
__________________
Get Firefox Now |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|