Re: running a script
| From: | Aaron Todd | Date: | Tue, 03 Aug 2004 17:32:06 +0000 |
| Subject: | Re: running a script | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192559@lists.php.net to get a copy of this message | ||
I like both of these methods...Is one of them more used regularly with PHP.
I don't want to start down a road that will eventually dead end if you know
what I mean.
Thanks,
Aaron
"John Nichel" <john@kegworks.com> wrote in message
news:200408031319.15749.john@kegworks.com...
On Tuesday 03 August 2004 13:08, Aaron Todd offered up the following tid-bit
of information :
> The program I am working on so far will take input from a form and email
> it out. This information needs to be verified by a human and then
> somehow the human that verifys the info needs to click some link in order
> to for all that data to be entered into an SQL database.
>
> I was thinking of somehow having a link in the email so when I click on
> it, it runs a script that will enter all my info into the database.
>
> Any help/suggestions is appreciated.
>
> Thanks,
>
> Aaron
You could :
A) Build the link in the email with a query string of all the data you want
to enter into the db, eg.
http://www.mydomain.com/processForm.php?key1=val1&key2=val2&key3=val3
And these will be passed to your script in the $_GET array.
Or :
B) Store all the info that is entered in your form in a temporary table,
with a unique id, and attach that id to the link in your email, eg.
http://www.mydomain.com/processForm.php?id=<some
id>
And have the script (processForm.php), read the info from the temporary
table and insert it into it's final destination.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com