+ Reply to Thread
Results 1 to 4 of 4

Thread: Now I am stomped! URL for redirect

  1. #1
    Join Date
    Jul 2004
    Posts
    7

    Default Now I am stomped! URL for redirect

    OK, now I am stomped. Everything is working except for the URL for redirect from the fmbadhandler error page back to the form. If I leave the
    $TARGET_URLS = array();
    empty I get the error page with the errors but no URL. If I try to set the target URL as follows (I am testing the website on a remote machine with an IP address but no domain name yet)
    $TARGET_URLS = array("xxx.xxx.x.xxx/");
    (where xxx.xxx.x.xxx is the public IP of my server)
    I get redirected from the form but no error page appears, just an empty window with the following in the top bar:
    http://xxx.xxx.x.xxx/fmbadhandler.ph...index.php?34&i
    where index.php?id32 is the value I entered for this_form and index.php?id=34 is the value for bad_template in my form.

    Any thoughts?

    Best regards
    Sigurdur

  2. #2
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Now I am stomped! URL for redirect

    Hi,

    Mmmmm....we haven't tested this with IP addresses instead of domain names.

    However, I've had a quick look at the code for fmbadhandler.php and formmail.php and I can't see any reasons why an IP address won't work.

    I'll do some tests today to confirm that IP addresses will work.

    In the meantime, make sure the "this_form" field is a full URL - "http://xxx.xxx.xxx.xxx/yourform.htm".
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2004
    Posts
    7

    Default Re: Now I am stomped! URL for redirect

    Nope, doesn't work, even with the full url.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Now I am stomped! URL for redirect

    Hi,

    OK. IP addresses work fine.

    What you need to do is set $TARGET_URLS with "http://":
    PHP Code:
    $TARGET_URLS = array("http://10.0.0.1/");                   // default; no URLs 
    And in your form, you need:
    Code:
    <input type="hidden" name="this_form" value="http://10.0.0.1/yourform.htm" />
    I'll be out for the rest of the day (it's Sunday 11am here), so if you're still stuck, you can email me your scripts and form and I'll check them out for you later today.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Redirect NOT working
    By LordWulf in forum FormMail Subscription Support
    Replies: 3
    Last Post: 21-Aug-2004, 10:47 PM
  2. Link to your own REDIRECT page?
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 2
    Last Post: 17-Jun-2004, 09:36 PM
  3. Formmail File Visible In URL Address
    By amazing616 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 03-Jun-2004, 09:13 PM
  4. The requested URL was not found on this server.
    By aussieincanada in forum FormMail Subscription Support
    Replies: 1
    Last Post: 27-May-2004, 08:46 AM
  5. Redirect to my page on submit
    By insight in forum FormMail Subscription Support
    Replies: 21
    Last Post: 09-Apr-2004, 01:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts