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!
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
But this doesnt work. Can any1 tell me what I am doing wrong please.
Thank you
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
Does page2 have a call to session_start() as well?
Also, I'd strongly suggest doing some safety checking, rather than pretty much just displaying what the user puts in $_POST. What if I $_POSTed 'Job_name' to be:
nishmgopal wrote:the job name is selected as a drop down menu which is generated by a sql query. the values the user can pick are set by what is in the table.
Just because you've set up a form that all users can use, doesn't mean they will use it. It's pretty much trivial to submit one's own data to a page. Don't rely on user data ever.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.