Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

submiting the form to same page how to save the variables that comes from other page

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a situation ,

There is a page php1.php having a form with two select box , the action of this form is php2.php.
On php2.php i have another form whose action is that same page(php2.php) .
According to the options selected on the php1.php page i have made my update queries on the php2.php

The update query is working properly , but when i update php2.php generates notice about those two variables that i get from php1.php , saying undefined index.

So how to deal with it.
In my situation it is mandatory that the second form on php2.php have the action the page itself.

So is there any way like storing the variables from php1.php in session or something like that.

I Hope you understand what i`m trying to ask.
 
Nick Charles
Ranch Hand
Posts: 71
Linux PHP Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you posted both php1.php and php2.php. And post the error message you are seeing.

What you mean when you say "when i update php2.php"? What do you mean by "update"?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic