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 three forms. Some of the info is the same on each form. The use can submit from one page the click a link to go to another page. I have the session variables working so that the info from Page 1 shows in page 2, etc. I want user to be able to make changes from any form.
Problem is; Everything is working except if the user highlights text in input box then hits delete button then hits enter button. The variable remains. If user highlights text then hits the spacebar the text is cleared.(which is what I want when they use the delete button).
I would simply check all POST values for null or empty , and if so, see if $_SESSION['key_name'] has a value, and if it does, set $_SESSION['key_name'] = "";