Help Community Login:
Join our Facebook Fan Page & win a FREE Flash Drive!

Giving away a free flash drive!
Want more details? Click Here!
STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Engaged
Joined: 01/14/2009
Posts: 2357
Drops: 2771
Mood: Content
Re: How do I redirect?

Ok, there are many different ways to create a contact form; they can be made with PHP, CGI, Pearl, ASP, ASP.NET, and other languages, but no matter which one you choose, they all boil down to the same concept; you create a Form, that passes the form fields (whatever the user types into the blank lines) to some code (that's where the PHP, CGI, etc. comes in) and the code then handles the emailing of the info to wherever you want it. The final redirect can be chosen in the code.

Since I don't want to make any assumptions on what is already installed on your host, the easiest way is the oldest way. Most hosts have no problem handling CGI/Perl scripts, so here is a free script, very easy to configure and install, and it has an option in it's configuration (use notepad to open the configuration file, which is the script itself) to enter a page you want the user sent off to once the email has been sent to you. Clicky

There's a readme file that describes exactly how to set it all up, and the options available, as well as showing them on the webpage in that link itself. You'll see an option to redirect:

"Description: If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page."

There, you can enter your default URL if you want, but it's usually better to give them some sort fo feedback letting them know it was sent succcessfully. You can create your own page to show them saying "Your message has been successfully sent", or however you want to handle it.


Never play leapfrog with a unicorn

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <strike> <caption> <thead> <th> <param> <style> <BGSOUND> <color> <center> <font-size> <script>
  • You may quote other posts using [quote] tags.
  • Filtered words will be replaced with the filtered version of the word.
  • Textual smileys will be replaced with graphical ones.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <csharp>, <css>, <html4strict>, <javascript>, <php>, <vb>, <vbnet>, <xml>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.

More information about formatting options



NOT LOGGED IN

You are NOT logged in

NOTE: You are commenting as an anonymous guest. You will NOT immediately see your comment, but it's there. Please do not try to re-send the same comment. If you'd like to see it immediately, please login or create an account (no worries, it's free).


facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2012
TOS | Privacy Policy