EvilArcana
07-09-2016, 01:26 AM
I'm trying to make a newsletter subscription management page...I've written this in php and I'm using the vbulletin input cleaner from an example I found somewhere to accept a variable called type, which comes in as an r (request)...I then evaluate it for options like confirmation (welcome the user to the newsletter), unsubbed (say goodbye to user for unsubscribing), etc...
I wanted the default option (no type specified) to display a form that will give them the ability to subscribe. This form will do a post.
What do I need to do to allow a single php file to input clean r values and handle those...or input clean p values and handle those? Is that even possible? or do I need to create a separate .php file for the subscribe and unsubscribe form to post to? Sorry if this is a basic questions.
I wanted the default option (no type specified) to display a form that will give them the ability to subscribe. This form will do a post.
What do I need to do to allow a single php file to input clean r values and handle those...or input clean p values and handle those? Is that even possible? or do I need to create a separate .php file for the subscribe and unsubscribe form to post to? Sorry if this is a basic questions.