+ Reply to Thread
Results 1 to 3 of 3

Thread: Return All Variables To Bad_Form Page On Error

  1. #1
    Join Date
    Jun 2004
    Posts
    2

    Thumbs up Return All Variables To Bad_Form Page On Error

    Hi,

    After reading this thread:

    http://www.tectite.com/vbforums/showthread.php?t=97

    I was wondering if it is possible to return the variables into a new form page with a slightly altered lay-out.
    Also, in this case my webstats-script wil not count the form page double.


    Congratulations with this marvelous script, real quality!


    [edit]

    if it is not possible and I choose to have a bad_template page, is it possibe to use an image as a link instead of text for <return_link /> ?

    [/edit]
    Last edited by vladimir; 04-Jun-2004 at 01:54 PM.

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

    Default Re: Return All Variables To Bad_Form Page On Error

    Hi,

    I was wondering if it is possible to return the variables into a new form page with a slightly altered lay-out.
    Yes, you can, but the form will have to be a script, not straight HTML.

    You can convert your HTML page to PHP, for example, by renaming it from something.htm to something.php (assuming your webserver will serve PHP pages).

    Then, in the bad_url setting, specify the original form (something.php).

    FormMail will then call the bad_url target when the user has an error. It will pass the error details in the URL and also in the Session variables.

    With some relatively simple PHP logic, you can easily modify the output of the form as you wish, to incorporate the error details.

    I've made this sound simple, but you do need to be a bit of a programmer to get this done.

    As to the alternative, if you use the bad_template feature with our fmbadhandler.php, it currently does not support the return link being an image. However, we can add that in a future version if you need to go that way.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jun 2004
    Posts
    2

    Talking Re: Return All Variables To Bad_Form Page On Error

    thank you for the fast and clear answer.

    I didn't want to spend too much time messing around in php (since I am pretty new at it). So what I eventually did is choose for the alternative, leave the <return_link /> with an empty value ("") and use a manual <a href="#" onClick="history.go(-1)"> in my bad_template code. This solved my <img>-problem.

    once again much thanks for the great support, you have my recommendation for sure.

    Greetz from Belgium,

+ 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. Return All Variables To Form Page On Error
    By cornernote in forum FormMail Subscription Support
    Replies: 12
    Last Post: 31-Oct-2004, 10:20 PM
  2. Removing empty variables from eMail reply
    By Prospero in forum FormMail Subscription Support
    Replies: 4
    Last Post: 25-Jul-2004, 08:22 AM
  3. No return link for badhandler
    By ptr in forum FormMail Subscription Support
    Replies: 3
    Last Post: 27-May-2004, 12:27 AM
  4. scrip of error page
    By frans47 in forum FormMail Subscription Support
    Replies: 4
    Last Post: 19-May-2004, 04:08 AM
  5. Adding Attachment Variables
    By Bella in forum FormMail Subscription Support
    Replies: 1
    Last Post: 12-Apr-2004, 10:43 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