Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Question for whoever wrote the PHP front end?

Quote Reply
Question for whoever wrote the PHP front end?
hello!

Looking at the extraction of variables in the print_page function, I just wanted to ask how you would fix this problem with something I'm working on.

User registers, by completing a profile page.
Logs in.
Clicks to modify their account profile page.

If the user leaves any of the fields EMPTY (lets say their first name for this example), when the page of errors is returned currently their "existing" first name is put back into the template field - instead of remaining EMPTY.

Within the template it current shows... <?php if ($firstname) { ?><?php print $firstname; ?><?php } ?>

If the $IN var was extracted with EXTR_OVERWRITE then it works correctly, but I understand that would be a security risk.

Any ideas?

Regan
Quote Reply
Re: [ryel01] Question for whoever wrote the PHP front end? In reply to
Mmm... I didn't even realise people were still even using the PHP frontend :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Question for whoever wrote the PHP front end? In reply to
Andy wrote:
Mmm... I didn't even realise people were still even using the PHP frontend :/

Cheers


I'm not - I've just used a similar function to the print_page one in the php front end for my own project so all the same questions apply. :)

regan
Quote Reply
Re: [ryel01] Question for whoever wrote the PHP front end? In reply to
Ah ok - I'll leave that to Adrian to reply to - as I believe it was him who wrote the PHP front end =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [ryel01] Question for whoever wrote the PHP front end? In reply to
Sorry, I can't help... it's just been so many years since I've touched PHP.

Adrian
Quote Reply
Re: [brewt] Question for whoever wrote the PHP front end? In reply to
brewt wrote:
Sorry, I can't help... it's just been so many years since I've touched PHP.
haha - join the club <G>
Quote Reply
Re: [Andy] Question for whoever wrote the PHP front end? In reply to
Kinda sad I guess.
Perl is out the door these days and no-one hardly ever programmes in it anymore.
If links is to survive it will have to be done in php in the near future.

my 2 cents as I only ever use php now - wont touch cgi.