Re: running a script
| From: | Aaron Todd | Date: | Tue, 03 Aug 2004 19:24:29 +0000 |
| Subject: | Re: running a script | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192598@lists.php.net to get a copy of this message | ||
Thanks for the tips.
After clicking http://www.mydomain.com/processForm.php?id=<some
id> is 'id'
a variable containing 'some id'. Can I access that by '$id'
I am just trying to figure out how to write the SELECT statement for that
script. I am guessing, but I would do:
"SELECT * FROM temp_users WHERE ID=$id"
Thanks again.
Aaron
"John Nichel" <john@kegworks.com> wrote in message
news:200408031402.51034.john@kegworks.com...
On Tuesday 03 August 2004 13:32, Aaron Todd offered up the following tid-bit
of information :
> 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
<snip>
>
> 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.
I don't know if it's more common, but I would use the second option to do
something like this. No 'personal' infomation is passed to the script via
http.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com