How to loop a php file when there is a $_GET? -


i little confused on structure need build php file.

i have $_session['listingname'] = $_get['listingname']; @ start of file, listingname last php file. want have button submit text , refresh page. not sure how should approach it, because if refresh/reload page, can't perform $_get['listingname'] gives error of undefined method.

some advice appreciated. thanks

try this...

if(!empty($_get['listingname'])) {     $_session['listingname'] = $_get['listingname']; } 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -