Page 1 of 1

the design of running scripts

Posted: Wed Jan 07, 2004 8:05 am
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

Posted: Wed Jan 07, 2004 9:37 am
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.

Posted: Wed Jan 07, 2004 10:28 am
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

Posted: Wed Jan 07, 2004 11:04 am
by JayBird
This may help

viewtopic.php?t=16410