Forums

JavaScript alert on sidebar (4 posts)

  1. biok
    Member
    Posted 8 months ago #

    Hello,
    I hope someone can help me, I'm sure this has a very simple explanation but I have been trinity to resolved this problem but I can't find out what is wrong.

    I have a call to a php file in my sidebar.
    <?php include("newsletter-signup.php"); ?>
    this file is in the theme folder with the rest of the files.

    The content of this file is this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I removed the content of the php section to leave only what is giving me the problem. when I click on the submit button, the alert shows up but the page under it goes to a 404 error page, and when I click the ok button on the alert box it stays on that page. I know I can call the history function of js but I don't want the 404 error to show up, why the alert doesn't show on the current page?
    thanks.

  2. biok
    Member
    Posted 8 months ago #

    sorry, here is the content of the file:

    http://pastebin.com/4VFPsu9Z

  3. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 8 months ago #

    Are you calling the php from a php widget?

  4. biok
    Member
    Posted 8 months ago #

    No, I'm just putting the call to the newsletter-signup.php on the sidebar as demonstrated above.

Reply

You must log in to post.

About this Topic