| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Aug 2004
84 posts
Gave thanks: 0
Thanked 0 times
|
PHP handlers
I have a HTML form, to my knowledge the only way to access information in it is by posting to another script. Is it possible to use php in the same script to edit the fields before the data is sent? As i need to MD5 hash the data before hand. The only otherway of doing this is java, which i'd rather not use but if it's not possible can someone post the code i would need.
Thanks. |
|
|
|
|
|
#2 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
No, it isn't possible with php. Data has to be sent first before the script could process it. Java would be the only way and not necessarily reliable since some people do cut it off.
You would basically have to go through each form element and and hash it separately. http://infotech.indiatimes.com/artic...,prtpage-1.cms has an example of doing it on one field. You could adapt that to your purpose. The other alternative would be to consider getting an SSL certificate for your domain and using SSL for the form submission.
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|