aspose file tools*
The moose likes PHP and the fly likes submiting the form to same page how to save the variables that comes from other page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Bookmark "submiting the form to same page how to save the variables that comes from other page" Watch "submiting the form to same page how to save the variables that comes from other page" New topic
Author

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

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 281

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.

Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer
Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

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"?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submiting the form to same page how to save the variables that comes from other page