PHP & HTML: Encrypt form

anndesmaicha

New Member
I have forms within my website. Some of these forms include PayPal forms (forms that submit information to PayPal). I do not wish my customers to view the source code and see what fields & their respective values I am using. As such I wish to encrypt them and yet, be able to submit information securely over to PayPal with the values that user enters in the form & my own hidden form values.So for example, consider that one of the elements of my form is:\[code\]<input name="note" type="text" id="note" value="http://stackoverflow.com/questions/3557725/<?php echo ( isset($_POST['note']) ? $_POST['note'] : '' ); ?>" maxlength="255" />\[/code\]When I view the source code, I see something like this:\[code\]<input name="note" type="text" id="note" value="http://stackoverflow.com/questions/3557725/This is my first note" maxlength="255" />\[/code\]So it's very clearly visible what note I am sending. I do not want anyone to see what I am sending and to where. So if possible, can we encrypt the fields & their values so that user sees something like the following when he views the source code:\[code\]aXKJKJHlnkhGHKJBjKJOIKJKG5dsaGjhvbSDHAHOSDLnNDNOjkjsadndKHKDNSQW\[/code\]The above would represent the encrypted form of the field. Is this possible to achieve without using Javascript? I would really want to do this without javascript because the form field values would be dynamic & javascript could be disabled. Thank you very much.Edit1: I just wanted to add this Note to specify that I would apply the same encryption process to all other forms & they may or may not post to PayPal. So keeping this in view, it would help to know an encryption routine in general & not just in specific to Paypal. Any ideas?
 
Back
Top