icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP handlers

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 30th, 2004, 4:27 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Scribe's Avatar
 
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.
Scribe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 31st, 2004, 4:16 AM   #2 (permalink)
the one who was
Super #1
 
patrickb's Avatar
 
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
patrickb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 1st, 2004, 1:13 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Scribe's Avatar
 
Joined in Aug 2004
84 posts
Gave thanks: 0
Thanked 0 times
ok, cheers a load m8
Scribe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On