• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 71
PHP Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic