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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
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
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to