Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • An addition:

    be advised that the following names are also reserved:

    “day”
    “month”
    “year”

    Forum: Fixing WordPress
    In reply to: Custom form

    Update:

    Actually, there are side effects. I just didn’t notice it right away since the blog is empty and the content area is pretty empty too. The form works, but upon submit it causes a 404 page to come up in the content area.

    Any ideas?

    Thanks.

    Thread Starter parahumanoid

    (@parahumanoid)

    Another update.

    Actually, not everything is so great. Upon submit, now a 404 page comes up in the content area. Ideas?

    Thread Starter parahumanoid

    (@parahumanoid)

    An update:

    I moved the <?php require_once(“validate.php”); ?> statement from header.php to sidebar.php and it all began to work as expected. So for practical purposes this issue is resolved.

    However, I strongly encourage further comments on what may have caused this behavior. So far, I am leaning towards a variable naming conflict, but who knows. Any ideas for testing are welcome.

    Thak you all.
    Alex.

    Forum: Fixing WordPress
    In reply to: Custom form

    Update:

    I got my problem fixed. I guess it was about a naming conflict or something similar. Previously, the validation.php file was being imported in the “header.php” and by the time it got to the sidebar something was happening. I moved the require statement into the top of the sidebar.php and it all works now.

    Technically, because the suspicion of naming conflict remains, I consider this a hack with possible consequences to the WP’s workings, but so far no issues have shown up. So I guess my case is “resolved” at this point as well.

    Should anyone have an idea of what could be going on here, please do comment.

    Thanks.
    Alex.

    Forum: Fixing WordPress
    In reply to: Custom form

    Hi.

    I am also battling the issue of custom form processing like you did 8 months ago. I wonder if you came to an understanding of this topic and maybe could give me a few tips.

    I am trying to get my form onto the sidebar. Which I did. Form action is set to “<?php echo $_SERVER[‘PHP_SELF’]; ?>”. So is the form action for the search form in the header (don’t know if this is a problem per se). Among the names that the standalone version of the form uses only $errors array makes me think of possible naming collisions when the form is inserted into a sidebar file. It always comes in unset if form is embedded into the sidebar (and it’s used to log input validation errors). In the standalone version it works fine. Do you think that could be the issue?

    Actually, any even simplistic walkthrough on how to embed a simple form into a sidebar would be greatly appreciated.

    Thanks for your time.
    Alex.

Viewing 6 replies - 1 through 6 (of 6 total)