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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -