WordPress.org

Support

Support » How-To and Troubleshooting » form not working in wordpress

form not working in wordpress

Viewing 6 replies - 1 through 6 (of 6 total)
  • Don’t use relative path for “example.php”

    lostasylum
    Member

    @lostasylum

    i have tried putting the full path for “example.php”, but it still doesn’t work.

    my root folder is /wordpress.

    so i’ve tried putting <form method=”post” action=”http://www.example/wordpress/example.php”>, but it still doesn’t work.

    is there something i’m missing?

    Are you trying to put it, actually, in the content of a Page?
    I don’t think it will ever work.

    That kind of stuff should always be put in a Page template.

    lostasylum
    Member

    @lostasylum

    ok, i tried to use the page template method, where i created form.php.
    then i created a new page that uses form.php, which in turns actions example.php

    the page template creation went fine, but when i click submit, it’s still trying to locate http://www.example/wordpress/example.php

    i’m a real noob at this, so thanks for bearing with me…

    lostasylum
    Member

    @lostasylum

    hi moshu… i’ve finally solved the problem about my forms… it was due to the permalink solution that i used… after reverting back to the default page id format, the forms all work properly now…

    now i just have to find a way to make permalinks work for IIS… #$%@#$%$…

    thanks a lot moshu!

    stevepb
    Participant

    @stevepb

    Hello the solution is because the register globals being set to off!

    Create a subdirectory and place the example.php inside it i.e. http://www.example/wordpress/newfolder/example.php

    next change your server settings to globals on for that directory ONLY!

    Now your forms will work using the post method and change the actions to the new location of example.php file i.e.

    <form method="post" action="http://www.example/wordpress/newfolder/example.php">

    You can change your register globals setting in vhosts directory or some of the other .conf files on your server, and perhaps even using the .htaccess file are a few methods.

    Steve
    http://SHEilds.org

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘form not working in wordpress’ is closed to new replies.