Firstly JavaScript and Java are two VERY different things. One is a broswer side scripting language the other is an enterprise Object Oriented Development Langauge.
To answer your question its a...
Type: Posts; User: GarethMc; Keyword(s):
Firstly JavaScript and Java are two VERY different things. One is a broswer side scripting language the other is an enterprise Object Oriented Development Langauge.
To answer your question its a...
I guess i should have mentioned then but I thought it was obvious .. the ........... in that code aren't code just I was a little lazy to type the full HTML which I thought you would realise and do...
Yes you can just alter the input tag based on the value of $error:
<?php
if ($error)
{
?>
<input class="fout" type="text".........
<?php
I was just pointing out that string based comparisons are not incredibly reliable. Someone could just take the space out from in front of " your email adress" in the text box and click submit and it...
One of the reasons for PHP's lack of OO functionality was there used to be a rather large rift in the community about whether web based software really needed to have OO functionality. Call that...
Forgive me .. 3 hours of sleep last night trying to meet a deadline for today does not make for a sharp bunny -_-
Personally I'm always a bit "antsy" about new Microsoft technologies entering a field that is already pretty mature as they have a bad history of forcing the technology into the market in order to...
Yes you should and you should also add the closing tags at the end (i.e. </body> and </html>)
I was just a bit lazy using proper XHTML tags such as the doctype decleration and such.. just add the...
PHP 5 is substandard? :O
Problem now is a simple typo ... you do need to check that all the values you check for are correctly spelt.... If you look at the HMTL that defines the email text box:
<input type="text"...
NULL is no value .. thats all .. nothing ever existed or exists there.. has nothing ... 0 is not nothing .. 0 IS a value of zero.... '' is not nothing its an empty string... NULL is nothing... simple...
Ok sorry or double post but I realised it migh tmake no sense my previous post so I'm taking a different tack >.<
Using my little three field table as an example you can use the following SQL to...
Thats a value of ' ' .. which is not a null value hehe .. it does take getting ure head around it though.
If your field does not have the NOT NULL flag set in the table definition then it can...
Ok lets change them all to use the strlen function....
if ($_POST['name'] != " your name" && strlen(trim($_POST['name'])) > 0
&& $_POST['email'] != " your e-mail adress" &&...
-slaps head-
Yes that too hehe .. but adding the strlen takes it from checking what the value is whch can fail to checking that whatever the value is is a string bigger than 0 which means any...
I have altered the if statement as such:
if ($_POST[name] != " your name" and $_POST[name] != "" and $_POST[email] != " your e-mail adress" and $_POST[email] != "" and...
Like everyne has already said, favicon's generally need to be a recreated version of the original with all "fancy" effects removed. Pretty much just lines and fill colours to help it look at least...
This question is like saying which car is best or which house is best.. its all a matter of opinion and function. For myself I use Opera for my general purpose web surfing (like now on this forum)...
You need to create an icon called favicon.ico...
The following instructions were taken off http://www.hypergurl.com/favicon.html:
Really depends which you find more elegant or not but you can either alter the $date and add a dummy time or just use the DATE() function extract only the date from the timestamp fields...
...
If I understand your problem correctly you want to check if someone has filled in the fields correctly and i not then give them an error message?
This is easiest done by not seperating your PHP...
Ummm .. one thing to remember which I think people forget...
By setting a field to NOT NULL it also means that you MUST insert some value in that field and will throw an error if there is no value...
Well editing programs on Linux are by far in greater number. Also, if you are going to use Linux as production avoid Windows then as it won't matter for your dev environment.
Also bear in mind,...
True yes, and it will also duplicate the employee names if they have multiple departments they are members of...
Hehe .. well .. I always use the date() function myself ... would have been my next suggestion.. >.<