dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: maxwell55

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Have a php hit counter without changing index.html to index.php

    Hi,
    I would like to add a php hit counter to my web site's entry page.
    I know I can do this no problem by changing the name of my entry page
    from index.html to index.php and adding the necessary...
  2. Can't use an undefined value as an ARRAY reference

    Hi

    I am trying to use a CGI (Perl) script that searches a product catalogue, however when run the following error displays -

    Can't use an undefined value as an ARRAY reference at...
  3. Thanks!

    Thanks!
  4. All output now properly spaced. ...

    All output now properly spaced.


    preg_replace('/\s*[\r\n]+/', ' ', $_POST['sender_message']);

    Many thanks!

    Maxwell
  5. Hi, I tried ...

    Hi,

    I tried


    preg_replace('/\s*[\r\n]+/', '', $_POST['sender_message']);

    And still got - hellohellohello
  6. How to add a space back into textarea input which has had new lines removed

    I have used the following code to remove new lines etc from a textarea.


    $message = $_POST['sender_message'] = preg_replace("/\r|\n/", "", $_POST['sender_message']);
    $data =...
  7. Replies
    9
    Views
    1,728

    My feedback-form is now working ok using the...

    My feedback-form is now working ok using the following code -

    Code on form processing page


    $myvar = "Thank you for your feedback!";
    $myvar2 = "Message not sent. Please, notify site...
  8. Replies
    9
    Views
    1,728

    As a beginner, I'm thinking unless the...

    As a beginner,
    I'm thinking unless the feedback-form page is accessed via the php script page

    $name = $_GET['myvar'];

    will not contain anything so is undefined,
    and if it has been access...
  9. Replies
    9
    Views
    1,728

    My page appears to be working ok now, the...

    My page appears to be working ok now, the variables are being passed from the form processing page
    to the feedback-form page and the alert shows when the form is submitted as required.
    However I...
  10. Replies
    9
    Views
    1,728

    I tried passing the variable as suggested however...

    I tried passing the variable as suggested however received a 403 error!
    Can you please tell me where I am going wrong?

    PHP form processing page send-mail.php code


    $myvar = "Thank you for...
  11. Replies
    9
    Views
    1,728

    I managed to pass a php variable from php to...

    I managed to pass a php variable from php to javascript on the same page,


    $php_var = "Hello world from PHP";

    <script>
    var js_var = "<?php echo $php_var; ?>";
    alert(js_var);
    ...
  12. Replies
    9
    Views
    1,728

    Problem with page redirect alert message

    My web page has a survey form that sends its results to a php page for processing.
    If things are ok a javascript alert appears saying thanks for the feedback.
    When I tested the script earlier in...
  13. Should I secure my radio buttons if not interacting with a database?

    I am trying to build a survey web form with five groups of HTML radio buttons,
    when the form is submitted the values are emailed via the php mail() function,
    there is no database involved.
    I would...
  14. Hi, thanks for replying. I followed the advice...

    Hi, thanks for replying.
    I followed the advice given at:

    http://stackoverflow.com/questions/2610136/remove-flash-between-pages-while-using-internet-explorer-modal-boxes



    I moved all of my...
  15. [RESOLVED] Web pages doing a full reload on every access

    Hi, I am creating a website which currently has four pages.

    http://www.wlmhap.org/

    Every time I access three of the pages the browser window goes completely white
    for half a second before...
  16. Replies
    3
    Views
    1,148

    Hi Many thanks for replying! As suggested I...

    Hi
    Many thanks for replying!
    As suggested I downloaded the module from cpan as it wasn't available in the Activeperl package manager.
    I am sure it will be invaluable to me. Also the syntax used...
  17. Replies
    3
    Views
    1,148

    Help with operator precedence

    Hi
    I am having a bit of a problem working out operator precedence in the follow expression, the output of which is 0.
    I realize ++$value2 is incremented immediately so both ++$value2s should now...
  18. Replies
    3
    Views
    954

    Hi Thanks for replying I understand things...

    Hi
    Thanks for replying I understand things better now!

    Regards Maxell
  19. Replies
    3
    Views
    954

    Syntax explanation

    Hi

    I have a rough grasp on OO perl however,
    I would like someone with perl experience to give me an explanation of what the following code is doing?
    I have highlighted in red the lines I would...
  20. I still don't understand how y-- can equal 6 when...

    I still don't understand how y-- can equal 6 when it originally contained 5
  21. Question about auto increment auto decrement unary operator syntax

    If I run the following code in firebug the output equals 0


    y = 5;
    x = 0;
    z = 1;
    newnum = y++ + ++x + x++ + z++ - z++ - y--;


    If I test x, y and z on their own in firebug the output is -
  22. Thank you for replying. If I want to add say...

    Thank you for replying.
    If I want to add say another 2 images to preloader do I change this i<=3; to this i<=5;
  23. What is the best way to preload images located in other pages of my website?

    Hi
    A few pages on my website have different medium sized images.
    To speed up page loads, when users visit my home page, I would like to pre-load the other page's images
    into the browser cache....
  24. Hi Thanks for the advice, which I have taken...

    Hi
    Thanks for the advice, which I have taken onboard.
    The script appears to be working now, a single email is being sent out only to the person who chooses their name from the dropdown menu.
    I...
  25. Hi Thanks for the help. My original page with...

    Hi
    Thanks for the help.
    My original page with the query sending out the email to everyone in the users table was and still is working (with no new connection added to the top of the page).

    I...
Results 1 to 25 of 31
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles