#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Piscataway, NJ, USA
    Posts
    10
    Rep Power
    0
    I'm trying to createa PHP page which will fiurst of all gather output from a form.

    Then I want it to insert a script (sort of like SSI would), but to append these collected variables to the script name.. so i want it to be something like this..

    < insert header.html >
    < insert script.cgi?output=somevariable >
    < insert footer.html >

    the thing i really need to know how to do, is how to collect variables from a form. I suppose putting in SSI tags won't do anything to the PHP page. So whats the syntax as to how to collect sent data.

    thanks
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    I think you probably want to look into the virtual() function...

    Or perhaps the "system()" function, I think.. anyway, there are a couple of functions in php4 that assist in bringing cgi output from perl, or other, into your document.

    Well, no, inserting an SSI call will not do anything, you can execute the external script and the get the result, but you won't be using an SSI tag.

    As for getting the results of your form data, simply refer to the form tag name..
    such as:
    <input type="text" name="sometinput">

    In PHP to reference the value of "someinput"
    you would use $someinput.

    Hope that helps.

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

Similar Threads

  1. php script won't work inside "cgi-local" directory
    By Volitics in forum PHP Development
    Replies: 5
    Last Post: April 26th, 2004, 10:50 PM
  2. Run perl script from a web page
    By ChillyWyo in forum Perl Programming
    Replies: 6
    Last Post: March 5th, 2004, 09:20 AM
  3. Replies: 11
    Last Post: February 21st, 2004, 06:48 AM
  4. How to see the Memory used by a PHP script?
    By Pardall in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 03:54 PM
  5. Replies: 0
    Last Post: February 8th, 2004, 10:11 PM

IMN logo majestic logo threadwatch logo seochat tools logo