How to open a PHP success page in MIVA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wajake41
    Mega Mivite


    • Dec 2009
    • 2294

    #16
    Re: How to open a PHP success page in MIVA

    html is just text like you get when you type a letter, it is not a program. When html is sent to a browser, the browser uses the html to format the web page. PHP is a programming language. It too is text, but it has to be processed by a PHP interpreter which understands and executes the php language commands, for example: echo. php is amazingly powerful and has a multitude of features that are built into it (I even ran into a function that can give the time of sunrise in some location at a future date). The php echo command is used to send html formatted text to a browser, where the browser then formats the web page using the html. Html & php are two very different animals. Hope this help distinguish between the two. I would think that someone on this forum could help with this since we are talking about modifying your Miva script code. Not sure you'll find much help on the Google. Regards, Larry
    Last edited by wajake41; 11-18-13, 10:11 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment

    • kayakbabe
      Mega Mivite




      • Jun 2008
      • 1520

      #17
      Re: How to open a PHP success page in MIVA

      forgive me as I"m hungry... but here is an analogy that might help.

      an html file is like a frozen tv dinner served by an angry spouse (named server).
      The server grabs it off the shelve, does nothing to it, and throws it at the browser. Browser interprets the html to show it to the viewer.

      a php file is like a fine recipe that needs tlc to get perfect.
      The server reads the recipe, then mashes, mangles, stirs, add some spices, bakes it and then after a little time delivers some kind of result to the browser. If the recipe was good, then the browser can interpret it and you see some awesome stuff on your browser.

      A lot more happens to a php file on the server side even if it just says "hello world".

      It sounds like your form is collecting information and you want to capture that information. You are either having it emailed to you, or stored in a database, or both... then you want to say "thank you" with your success php.
      Do you even need to send all that stuff on the url to your success.php ? Maybe their first name?

      Using get to toss things around on a website leaves a lot of security risk and room for hackers,sniffers,snoopers and the like to grab that info. People get nervous now days when they see all that in a url even if it is on the same website.

      also, I can't help but wonder since you have had your site converted to be php based. why are you still trying to use that old mivascript? just redo the form, form submission process, and thank you all in php. There are tons of examples on google about how to do it.
      I"m sure whomever converted your site to php can do it for you.
      Last edited by kayakbabe; 11-19-13, 02:10 AM.

      Comment

      • wajake41
        Mega Mivite


        • Dec 2009
        • 2294

        #18
        Re: How to open a PHP success page in MIVA

        I love the analogy! Larry
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment

        • Bruce - PhosphorMedia
          Developer Partner











          • Mar 2006
          • 11256

          #19
          Re: How to open a PHP success page in MIVA

          Originally posted by wajake41 View Post
          execute the server success.php program rather than submit the success.html page. Sorry for the misguided replies. Larry
          You can try using the POST method with the mvcall instead of GET.

          Also note, that for servers running old versions of Mivascript, it was common to run files with both .HTML as well as the more standard .MV extensions through the mivascript program interpreter.
          Last edited by Bruce - PhosphorMedia; 11-19-13, 08:59 AM.
          Bruce Golub
          Phosphor Media - "Your Success is our Business"

          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
          phosphormedia.com

          Comment

          • imyb
            Mini Mivite

            • Oct 2013
            • 13

            #20
            Re: How to open a PHP success page in MIVA

            Thanks everyone. I love the analogy.... I guess I am the SERVER WIFE! ;-)

            As for using the OLD MIVA SCRIPTS to process my forms was because I didn't expect it would be a big deal and it's not my area of expertise. I wanted something "simple" to script. This was already done and working and I figured it would be easy to just change the link from success.html to success.php but I of course didn't know about the TV DINER vs GOURMET MEAL situation ;-)

            This might be silly but when I open the link to the success.php page it works, I really wish there was a way to just open a new page with the url in there and it would "bake it properly". But I understand the limitation better with all your help.

            I guess I'll just look into doing a script in php to process my form... I need it to EMAIL ME THE INFO, SAVE IT INTO A file.txt on my server and SEND THE CLIENT TO THE SUCCESS PAGE... I hope this is going to be easy to do. I learn fast but I need this up and rolling in a hurry. I wish that it was possible in miva to just say... GO TO THIS URL and IT's PHP so load it properly.

            So, I guess i see PHP scripting in my near furture... Thanks everyone for all the great & fast help. You guys are the best!

            Comment

            • wajake41
              Mega Mivite


              • Dec 2009
              • 2294

              #21
              Re: How to open a PHP success page in MIVA

              Did you try changing the GET to POST? Larry
              Larry
              Luce Kanun Web Design
              www.facebook.com/wajake41
              www.plus.google.com/116415026668025242914/posts?hl=en


              Comment

              • imyb
                Mini Mivite

                • Oct 2013
                • 13

                #22
                Re: How to open a PHP success page in MIVA

                Not yet but I will... But could you paste the part of code I should use if you can.

                Comment

                • wajake41
                  Mega Mivite


                  • Dec 2009
                  • 2294

                  #23
                  Re: How to open a PHP success page in MIVA

                  This is just a WAG. Try changing <MvCALL ACTION="&[url];" METHOD="GET"> to <MvCALL ACTION="&[url];" METHOD=" POST "> Larry
                  Larry
                  Luce Kanun Web Design
                  www.facebook.com/wajake41
                  www.plus.google.com/116415026668025242914/posts?hl=en


                  Comment

                  Working...
                  X