Search found 6 matches

by JonOfAllTrades
Wed Nov 09, 2005 8:03 am
Forum: General Discussion
Topic: Better PHP/HTML Layout to Handle Refreshes
Replies: 11
Views: 1348

Aha! Thank you, Feyd. Your post made me curious to see if there was ANY difference between exit() and die(). There's not, but there's a note in die() that *return* will exit the current file. Perfect! Guess I shoulda RTFM... :oops:
by JonOfAllTrades
Wed Nov 09, 2005 7:58 am
Forum: General Discussion
Topic: Better PHP/HTML Layout to Handle Refreshes
Replies: 11
Views: 1348

You can use header() to jump back into the same page, but with different variables. So it will work for the first problem. As for the break thing, I think you're looking for exit () Hmm. I thought you could not use header() once you'd outputted any part of the document? Exit() drops out of PHP, cut...
by JonOfAllTrades
Tue Nov 08, 2005 12:28 pm
Forum: General Discussion
Topic: Better PHP/HTML Layout to Handle Refreshes
Replies: 11
Views: 1348

Hmm. Once the form has been actioned, have header ("thispage.php"); exit; bounce them back to the same page again, but without any values (except maybe one to say 'yay, your login is accepted, or something). This is the wrong forum for this sort of stuff, by the way. Sorry. Interface desi...
by JonOfAllTrades
Tue Nov 08, 2005 11:40 am
Forum: General Discussion
Topic: Better PHP/HTML Layout to Handle Refreshes
Replies: 11
Views: 1348

Better PHP/HTML Layout to Handle Refreshes

Hello and good morning, peeps. I'm new to PHP, and I've been cheerfully whipping out login and admin pages, so far so good. When a user submits an action with a link or button, the page is reloaded with a $_GET['Action'] value. The start of each page checks for this and handles it. This lets me keep...
by JonOfAllTrades
Tue Nov 08, 2005 8:52 am
Forum: PHP - Code
Topic: Help with MIME Attachments
Replies: 3
Views: 190

Got it! I needed to take out addslashes(), and add filename=. NOT optional.
Thanks for your posts.
by JonOfAllTrades
Mon Nov 07, 2005 4:14 pm
Forum: PHP - Code
Topic: Help with MIME Attachments
Replies: 3
Views: 190

Help with MIME Attachments

Good afternoon, everyone. I have written some code to create an e-mail with an attachment, but I must be missing something somewhere. Hopefully some wise person here will immediately see my mistake! The prog successfully creates and sends the e-mail, including the attachment, but the contents of the...