Menu

Various thank you/redirect pages

Help
dunk3r23
2007-11-22
2013-06-03
  • dunk3r23

    dunk3r23 - 2007-11-22

    I'd like to ask to, is it possible to have different thank you pages/redirect pages at once?
    Ok, i run a forum and I have a support page.
    I have created a form.
    It has First Name
           Last Name
           Drop-down menu : Forum Question
                            General support
    So how do I manage form submitter to my forum when they choose Forum Question, and how do I manage forum submitter to FAQ page is he chooses General support?

     
    • TNTEverett

      TNTEverett - 2007-11-23

      I'm not quite sure what you are asking.  It is impossbile to redirect to 2 different pages.  You can send someone to a thank you page that redirects to another page if this is what you mean. 
      The other stuff is severly lacking in detail.  If you need help you will have to be much more specific. 

       
    • dunk3r23

      dunk3r23 - 2007-11-23

      Ok, I'm selling services, and they have different prices.
      My form looks like this

      First Name
      Last Name
      Order Type (Order 1)
                 (Order 2)
      Is it possible do create a form with will redirect to mysite.com/order1 when Order type is Order 1
      And when Order 2 option is chosen redirect to page mysite.com/order2?
      Thanks for your help

       
      • TNTEverett

        TNTEverett - 2007-11-23

        Easy, you may have a redirect section of your form that looks like this:

        header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou.php");

        What you need is an if statement around the redirect.

        if($order1) {
        header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou1.php");
        } else {
        header("Refresh: 0;url=http://www.url.com/orderform/orderthankyou2.php");
        }

        Of course the details depend on your form variables but you get the basic concept.  If you still need help you'll have to send me the form number (download link) so I can see your form design. 

         
    • dunk3r23

      dunk3r23 - 2007-11-23

      Here's part of my script
         $message = stripslashes($message);
         mail("mail@mail.ru","Form Submitted at your website",$message,"From: phpFormGenerator");

      header("Refresh: 0;url=http://site.com/forums/");
      ?><?php

      How do I edit it?
      $message = stripslashes($message);
      mail("maximukraine@mail.ru","Form Submitted at your website",$message,"From: phpFormGenerator");
      if($Name) {
      header("Refresh: 0;url=http://site.com/forums/");
      if($Name1) {
      header("Refresh: 0;url=http://site.com");
      } else {
      header("Refresh: 0;url=http://site.com/phpform/");
      }
      ?><?php
      This one doesn't work. I think I messed up with If and else. Could you fix it?

       
      • TNTEverett

        TNTEverett - 2007-11-23

        This is difficult not knowing what the rest of the file looks like but here goes;

        if($Name) {
        header("Refresh: 0;url=http://site.com/forums/");
        if($Name1) {
        header("Refresh: 0;url=http://site.com");
        } else { 
        header("Refresh: 0;url=http://site.com/phpform/"); 

        Change to:
        if(($Name)&&($Name1=="")) {
        header("Refresh: 0;url=http://site.com/forums/");
        }
        else if(($Name1)&&($Name=="")) {
        header("Refresh: 0;url=http://site.com");
        }  
        else {
        header("Refresh: 0;url=http://site.com/phpform/"); 
        }

        Without knowing what you expect to have populated or not populated, what the form variables are, this is just a guess.
        At least what I have provided will only do 1 of 3 things.

         
    • dunk3r23

      dunk3r23 - 2007-11-23

      Have 6 options on my form, and I need different page for any of them.
      Ok, could you help me.
      Here are the options
      Trial
      Starter
      Bronze
      Silver
      Golden
      Platinum
      Combo
      And the URLs are
      http://mysite.com/Trial
      http://mysite.com/Starter
      http://mysite.com/Bronze
      http://mysite.com/Silver
      http://mysite.com/Golden
      http://mysite.com/Platinum
      http://mysite.com/Combo

      How this look like? Could you show me at least one-two examples based on info I gave. Thanks a lot!

       
      • TNTEverett

        TNTEverett - 2007-11-24

        I already gave you an example.  In order for me to provide more detail I need to see the processor code.

         
    • dunk3r23

      dunk3r23 - 2007-11-24

      Please help me so I want bother you anymore. THANKS
      Have 6 options on my form, and I need different page for any of them.
      Ok, could you help me.
      Here are the options 
      Trial
      Starter
      Bronze
      Silver
      Golden 
      Platinum
      Combo
      And the URLs are 
      http://mysite.com/Trial
      http://mysite.com/Starter
      http://mysite.com/Bronze
      http://mysite.com/Silver
      http://mysite.com/Golden
      http://mysite.com/Platinum
      http://mysite.com/Combo

      How this look like? Could you show me at least one-two examples based on info I gave. Thanks a lot!

       
    • dunk3r23

      dunk3r23 - 2007-11-24

      What part of code do you need? I can post it

       
      • TNTEverett

        TNTEverett - 2007-11-25

        Send the link you used to download your form
        or
        in an email attach the form.html and processor.php files and send them to me
        or
        send me a link to your form.html and then email the processor.php file to me.

        Don't post your code without removing any links, email addresses, usernames, and passwords.  It's to easy to forget these things, this is why I recommend the email options. 

         
    • dunk3r23

      dunk3r23 - 2007-11-26

      I have everything ready to go, but how do I attach?

       
      • TNTEverett

        TNTEverett - 2007-11-26

        I know that sourceforge does not handle attachents very well.  It's only meant to be a basic messaging mailer.  Send an email from your own account to my sourceforge email address.  I will reply and then you can send whatever you wish. 

         
    • dunk3r23

      dunk3r23 - 2007-11-26

      I have sent you a message from my gmail account, but it bounced back. Is there any other way to send you a file?

       
      • TNTEverett

        TNTEverett - 2007-11-26

        Got it.  Give me some time to look at it.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.