Results 1 to 5 of 5

Thread: form handler script back to same page?

  1. #1
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default form handler script back to same page?

    Hi,

    Ive just started to experiment with a form handler script in PHP (this is my first time folks so please be gentle!) and the script is collecting the data ok.

    However, when i click on submit the browser directs to the new php location (cgi-bin) but i would like this to stay on the same page as the original form data, is this possible?

    Regards, J

  2. #2
    Senior Member Adendum's Avatar
    Join Date
    Apr 2010
    Location
    London (UK) & Granada (Spain)
    Posts
    926

    Default

    Jofan,

    If you are using the form capabilities within NOF you have the option to have a "success" page. So that when the form is submitted the browser is directed to any page you choose.

    And I believe that option is available within the Form Component as well as manually setting up a form.
    Paul - Aditerum Ltd and AllSortsOfStuff Ltd
    NOF11 (in Admin mode!); Vista Premium 64bit; AMD Phenom IIx4 945 Processor 3.00Ghz; 8.0Gb RAM
    Wouldn't it be great if there was only a single browser to worry about!!!

  3. #3
    Senior Member gotFusion's Avatar
    Join Date
    Jan 2010
    Location
    www.gotHosting.biz
    Posts
    4,529

    Default

    Quote Originally Posted by jofan View Post
    Hi,

    Ive just started to experiment with a form handler script in PHP (this is my first time folks so please be gentle!) and the script is collecting the data ok.

    However, when i click on submit the browser directs to the new php location (cgi-bin) but i would like this to stay on the same page as the original form data, is this possible?

    Regards, J
    Have you gone over my formshandler tutorial? http://www.gotfusion.com/tutorials/tut.cfm?itemID=4024

    There are a number of settings that you must make in the componet for it to function properly
    NetObjects Fusion Cloud Linux enabled Web Hosting, support + training starts at $14.95
    NetObjects Fusion web Hosting and support + ASP + PHP + ColdFusion + MySQL + MS SQL
    FREE NetObjects Fusion Support & training comes with all web hosting accounts
    NetObjects Fusion Web Hosting: http://www.gotHosting.biz

  4. #4
    Twayne
    Guest

    Default Re: form handler script back to same page?

    In news:jofan.4dbqgb@no-mx.forums.netobjects.com,
    jofan <jofan.4dbqgb@no-mx.forums.netobjects.com> typed:
    > Hi,
    >
    > Ive just started to experiment with a form handler script
    > in PHP (this is my first time folks so please be gentle!)
    > and the script is collecting the data ok.
    >
    > However, when i click on submit the browser directs to the
    > new php location (cgi-bin) but i would like this to stay on
    > the same page as the original form data, is this possible?
    >
    > Regards, J


    Yes. That's often used ini PHP files in fact. Gotfusion usually has VG tuts
    on these things; I've give his link a try rather than try to explain it
    here. Personally I find the Self() the easiest to work to.
    For overall PHP help, see w3schools and/or php.net - both excellent,
    thorough sources of information and samples.

    HTH,

    Twayne`



  5. #5
    Senior Member
    Join Date
    May 2010
    Posts
    98

    Default

    Thanks for your help guys, will work through the links soon

    Otherwise, hopefully someone could just verify the following regarding how php and html provide info to the browser.

    I have an SQL database uploaded server side.
    I would like to provide filter options to the viewer to filter out certain categories.
    To capture these, can i provide a form and then send these to the server as PHP variables.
    Then can these variables be used to decide what information is selected (filtered) from the database.

    Im not sure by doing this if just the individual browser gets the filtered results (would be the correct scenario) or everyone????

    Cant get my head round this yet..

    Regards, J

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •