Type: Posts; User:
Why not use a simple str_replace, as in
$text = str_replace("MRY.PDF", ".PDF", $text);
$text = str_replace("RPT.PDF", ".PDF", $text);
Your code is a bit unclear, so can I try to describe what it is you want?
You want to construct a SELECT statement with a WHERE clause of which the attributes are dynamically built from the $exclude...
Use back-ticks instead of double quotes if you must. Try this
$sql = 'INSERT INTO `tagging` (ID, itemID, groupID) VALUES ("", 1, 2)';
Sorry about the error, I typed it just out of my head.
Bij echoing the variables I mean the following: when your user fills in all fields, and one or more of them are incorrect, you (I assume)...
str_replace('\n', '--', $str) replaces 2 characters: the backslash and the r. In order to remove the newline you must put the to-be-replaced value within double quotes, because that interprets the \r...
Nothing really wrong. You just have to convert the newline chars (\n) in the <<<END .... END; string to html breaks. As in
At first I suggest that you change usage of HTTP_VARS to $_GET and $_POST. HTTP_VARS is deprecated an you will have to change that in the future (maybe next PHP release?) anyway.
Assuming that you...
I would prefer PHP. In PHP you have more variations for including files, i.e.
Have a look at the PHP manual PHP control structures to see what...
If you mean that you want to show the ticked boxes after you hit the Submit button, you must IN EVERY INPUT LINE inspect the setting of the $_POST['chkComplete'] and, if the value is found therein,...
Show the instruction with which you tried to remove the newline(s).
You can the str_pad function to append your text with blanks to the specified number. As in:
str_pad("TRANSACTION ID", 20).",".
str_pad("USERNAME", 20) .","....
Maybe you can use this, where I replaced the <> tags to <>
$search = "<Valute ID='$valute[$word]'>";
(I just googled for 'form builder' I got approx. 200 useable results)
Anyway, did you have a look at the link I gave you in my last reply?
Be aware that a relatively simple script will always...
You have one checkbox followed by a link on the same line.
Do you mean that the checkbox must be clicked and then the value automatically submitted?
Or do you want the checkbox clicked and then...
There are numerous web form builders and validation checkers available on the net.
Try googling for them.
Otherwise have a look at the PHP code of a form builder and validator by marek_mar Form...
The bad word blocker has nothing to do with usage in a specific kind of script.
Hackers could use that in any form they want to interrupt, not just emails!
So keep those words in.
What is the result (date format e.g. yyyy-mm-dd) you want to store in MYSql?
And why not use MySql functions to accomplish that?
If it is not TOO much trouble, look every now and then at the php.net documentation and you'll see that he means the addslashes() function. You could have found that yourself.
I don't believe that pure PHP/MySql code can mess up your CSS, becasue you don't output anything! And that is what CSS is for. You must have display code that does that, but you don't show it.
Most credits should go to marek_mar at http://www.codingforums.com/showthread.php?t=76949 who constructed the pattern for the url.
The following code should do the trick. It's the code I use:
$text = 'This is a web address complete http://my.site.com and this is a incomplete url www.yoursite.org.';
These words are part of HTTP headers that could be hidden in the input
Well, you could add it at the end of your existing checking code (I assume that your input_error() routine issues a message and reload the form or dies).
if (contains_badwords($vemail) ||...
Before you can echo them from the $_POST array to your form fields, you must have some form that posts the values that have been entered by the user. So why dont you show your script where these...
From what source are the variables $fname and $lname filled? Nowhere in this code you showed.