Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Hopefully a Quick CGIEmail Question

  • 19-02-2011 4:23pm
    #1
    Registered Users, Registered Users 2 Posts: 114 ✭✭


    Hi,

    I am just in the process of doing a form myself and was wondering if I could ask a few things:

    1. I know you can also use a hidden/field input in the html form to redirect to a custom success page instead of the very poor generic cgiemail success page. But ff you don't mind would you be able to tell me where you place this text? My form would look something like this:

    <form action="http://www.mydomain.com/cgi-bin/cgiemail/emailformcgi.txt&quot; name="mailinglist" target="_blank" method="POST">

    e-mail: <input name="email"><p>
    <input type="submit" value="GO">
    </form>

    I don't know where to place the redirect of: <INPUT TYPE="hidden" NAME="success" VALUE="http://www.mydomain.com/thankyou.html&gt;

    2. Is this script any good really? I keep getting suggestions about using PHP instead but I finally think I have my head wrapped around this script except for that one little thing above.

    Thanks if you have even read this far.

    KB


Comments

  • Registered Users, Registered Users 2 Posts: 490 ✭✭Pablod


    drop it in just before the end of your form
    </form>
    <input type="hidden" name="redirect" value="[URL]http://www.mydomain.com/Success.html[/URL]" />
    

    I've been pushed myself before to use PHP and even ASP but this CGI is a quick and easy option to use and does the basic job fine.
    I suppose go down the PHP/ASP route if you are looking to do a bit more customization with the form/redirection and to provide more info and a better looking email that is generated from the form.

    Hope this helps


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Heads up : Missing trailing > in the above code snippet.


Advertisement