the design of running scripts

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

the design of running scripts

Post by malcolmboston »

Just wondering this

normally (well everytime) i see people writing there scripts be it inserting a record or deleting, whatever they always pass it onto another page for it to be processed, I HAVE NEVER DONE THIS, i always do it on the same page and just redirect the user (basially refresh the page) is this bad? or just the scripters preference?

i understand that it could bloat a pages code (damn i have pages with 300+ lines of PHP code
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

I prefer having the code on a seperate processing page for design reasons. If I was to colaborate with a designer who knew nothing about PHP, it would be easy for him/her to send the data to my processing page, and they wouldn't have to work around/with my code.
ghost007
Forum Commoner
Posts: 49
Joined: Sat Nov 22, 2003 10:10 am

Post by ghost007 »

If you post a form to the same page and I use the back button. I will only have to refresh the page to resubmit the form with the same info.

just my 2c
siech
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

This may help

viewtopic.php?t=16410
Post Reply