PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a PayPal button that has two hidden fields. The first is the paypal email address to receive the money and the second is the amount to be sent. My problem is that I want to store the above two pieces of information in PHP variables and then use those variables as the values for the hidden fields. I don't know how to get the form's contents from the textboxes and move them into the PHP variables without first submitting the form.
The above is how I would normally get the contents of the textboxes after I submit the form, but I need the contents of the textboxes in those variables BEFORE I submit the form. My form code is below. I just have the basic form laid out right now because I don't even know what to try to get the above described to work. Thanks, Adam
Assuming the variable $landlord is an array holding the email address and name of each landlord as the key and value pairs, can't you alter your landlord loop to be the field containing the email address: