www.webdeveloper.com

Search:

Type: Posts; User: ronverdonk

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    650

    Why not use a simple str_replace, as in ...

    Why not use a simple str_replace, as in


    $text = str_replace("MRY.PDF", ".PDF", $text);
    $text = str_replace("RPT.PDF", ".PDF", $text);

    Ronald :cool:
  2. Replies
    2
    Views
    727

    Your code is a bit unclear, so can I try to...

    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...
  3. Replies
    2
    Views
    606

    Use back-ticks instead of double quotes if you...

    Use back-ticks instead of double quotes if you must. Try this

    $sql = 'INSERT INTO `tagging` (ID, itemID, groupID) VALUES ("", 1, 2)';

    Ronald :cool:
  4. Sorry about the error, I typed it just out of my...

    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)...
  5. str_replace('\n', '--', $str) replaces 2...

    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...
  6. Replies
    3
    Views
    861

    Nothing really wrong. You just have to convert...

    Nothing really wrong. You just have to convert the newline chars (\n) in the <<<END .... END; string to html breaks. As in

    echo nl2br(htmlspecialchars($testHTML));
    Ronald :cool:
  7. At first I suggest that you change usage of...

    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...
  8. I would prefer PHP. In PHP you have more...

    I would prefer PHP. In PHP you have more variations for including files, i.e.

    require
    include
    require_once
    include_once

    Have a look at the PHP manual PHP control structures to see what...
  9. If you mean that you want to show the ticked...

    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,...
  10. Show the instruction with which you tried to...

    Show the instruction with which you tried to remove the newline(s).

    Ronald :cool:
  11. You can the str_pad function to append your text...

    You can the str_pad function to append your text with blanks to the specified number. As in:

    fwrite($file_pointer,
    str_pad("TRANSACTION ID", 20).",".
    str_pad("USERNAME", 20) .","....
  12. Replies
    3
    Views
    580

    Maybe you can use this, where I replaced the ...

    Maybe you can use this, where I replaced the <> tags to &lt;&gt;

    $search = "&lt;Valute ID='$valute[$word]'&gt;";

    Ronald :cool:
  13. (I just googled for 'form builder' I got approx....

    (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...
  14. You have one checkbox followed by a link on the...

    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...
  15. There are numerous web form builders and...

    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...
  16. The bad word blocker has nothing to do with usage...

    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.

    Ronald :cool:
  17. Replies
    7
    Views
    763

    What is the result (date format e.g. yyyy-mm-dd)...

    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?

    Ronald :cool:
  18. Replies
    13
    Views
    2,340

    If it is not TOO much trouble, look every now and...

    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.

    Ronald :cool:
  19. Replies
    2
    Views
    638

    I don't believe that pure PHP/MySql code can mess...

    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.
    ...
  20. Most credits should go to marek_mar at...

    Most credits should go to marek_mar at http://www.codingforums.com/showthread.php?t=76949 who constructed the pattern for the url.

    Ronald :cool:
  21. The following code should do the trick. It's the...

    The following code should do the trick. It's the code I use:


    <?php
    $text = 'This is a web address complete http://my.site.com and this is a incomplete url www.yoursite.org.';
    // Pattern...
  22. These words are part of HTTP headers that could...

    These words are part of HTTP headers that could be hidden in the input
    fields.

    Ronald :cool:
  23. Well, you could add it at the end of your...

    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) ||...
  24. Before you can echo them from the $_POST array to...

    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...
  25. From what source are the variables $fname and...

    From what source are the variables $fname and $lname filled? Nowhere in this code you showed.

    Ronald :cool:
Results 1 to 25 of 71
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles