how to use action="PHP_SELF" but have three php tags in same file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swatidesai0407
    New Member
    • Jan 2007
    • 8

    #1

    how to use action="PHP_SELF" but have three php tags in same file

    hi im swati,
    working in php with mysql

    im working on a form wherin it adds record to database and on submit it should go to same php file dats y i want to use form action="PHP_SEL F"

    but my problem is im using sessions variables in same file so i hav 3 php tags in same file.and im not been able to know on submit which tag it goes.

    can anybody tell me how il overcome dis problem.coz else il have to use two files instead of 1.
  • b1randon
    Recognized Expert New Member
    • Dec 2006
    • 171

    #2
    Originally posted by swatidesai0407
    hi im swati,
    working in php with mysql

    im working on a form wherin it adds record to database and on submit it should go to same php file dats y i want to use form action="PHP_SEL F"

    but my problem is im using sessions variables in same file so i hav 3 php tags in same file.and im not been able to know on submit which tag it goes.

    can anybody tell me how il overcome dis problem.coz else il have to use two files instead of 1.
    Please post your code.

    Comment

    Working...