Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

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

Ranch Hand
Posts: 391
MySQL Database PHP Java
  • 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.
Ranch Hand
Posts: 71
PHP Linux 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"?
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic