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!
<a href="nextpage" onclick="addsession()" > next page</a>
onclick is a JavaScript event, JavaScript is client-side, PHP is server-side and has finished processing before any JavaScript is called. You cannot use onclick events to run PHP functions.
Why do you have to register the session variables before the next page?
Name
contact number
uploaded picture
description of picture
when page1 goes to page2 it displays all the details on page2.
if i session_register the details on page2 for when it goes to page3 - if you click back button and change details on page1 then when submitted to page2 again it does not alter the differences so i cannot use sessions on page2 (unless you can tell me how to do it )
I need all details passing through to page3 to finish off the submitting.
so i thought i could register all sessions jsut before it goes to page3.
I know its complicated but i`m just learning and i`m learning the hard way !