Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi formmail and php

Status
Not open for further replies.

Leozack

MIS
Joined
Oct 25, 2002
Messages
867
Location
GB
Hi good people. I couldn't find any other php community in years to post to so thought I've had best luck when on here.

My problem is a bit wavey, which is why I thought it indirect to post here, but here goes :

I have a few files I want people to donwload, but I want to make sure I have valid contact emails from them, and to hide the file location as best as possible. At the moment, they fill out a form including their email, and I have an email audtoresponder reply to them with a webpage they goto and it popups up a popup that starts the download and closes the popup window. However, that's always had problems every so often, and I wanted to do it in PHP

So - atm the form they fill out is a form that uses an action of a form-mail cgi script (you know the sort) so that saves me having to do my own validation and stuff. They get sent to an html page (one of the variables you set for the script) afterwards. Now - I need to use the form data to do something else - to email them an email including data from the form. I tried to access it from the page following the form submission, but alas no values were displayed. I'm guessing they're lost in the cgi form process. So - my question - is there A - an easy way to do this? B - more likely there isn't, so - is there anyway I can get a form to firstyl - execute some php script, and THEN to do the cgi? I know I can write my own submit functions in javascript, but I don't know how to execute php and then the cgi, considering the only contact I have with the cgi is to say action="cgi-bin/formmail.cgi" typ deal.

So ... anyone? heeelp! =)

I have a formmail cgi and I'd like to know how to activate it after my own php code

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
The reason I'm not using a prebuilt PHP thing is because as I said I already have a working form that gets details, and the cgi script (where the action value points) does the work (sendd an email to an autoresponder that responds with an address) and takes it to a html page. The only thing I need to change is the ability to send them an email with an address but one that encorporates part of the data from the form (their email). So rather than email my auto responder I'd like to somehow ... blah, this is stupid, I'm wanting to edit the formmail script anyway. I guess maybe I will just shove in my own php form, validation, and action. Though it's a page ina site using frontpage extentions and theme, so not sure what effect that has O_o

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top