PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    Function in process.php

    Share
    avatar
    mbrad

    Number of posts : 42
    Registration date : 2009-02-19

    Function in process.php

    Post  mbrad on Wed Mar 31, 2010 2:52 pm

    Thanks for taking the time to read my question.

    Is it possible to put functions in the process.php page?

    At the moment I have them at the bottom, but when I submit my form, it gets stuck on the process.php page, so I must be doing something wrong. Or do I need to put them on another page and include it?
    Code:

    <?php
    class Process
    {
    regular stuff here...

    $process = new Process;
    }

    My functions are here
    ?>

    Thanks,

    Brad
    avatar
    Linchpin311

    Number of posts : 220
    Age : 33
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Function in process.php

    Post  Linchpin311 on Wed Mar 31, 2010 5:04 pm

    it shouldnt be a problem adding a function to process.php if its done correctly, but the originally main purpose of process.php is to figure out which form was submitted and redirect to the appropriate page. so it might be best to have your function called on the page process.php redirects to.

    of course this script is fully open source so there arent any rules telling you what you can or cannot do with your script. whatever works best for you and your script.


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    mbrad

    Number of posts : 42
    Registration date : 2009-02-19

    Re: Function in process.php

    Post  mbrad on Sat Apr 24, 2010 1:26 am

    I figured out what I was doing wrong. You can put functions in there, I was just putting them in there incorrectly.

    Thanks again for your reply. I really appreciate it.

    Brad

    Sponsored content

    Re: Function in process.php

    Post  Sponsored content


      Current date/time is Wed Nov 14, 2018 1:12 am