Jump to content

Question about Form Submitted


doubledee

Recommended Posts

Up until now, I have been writing Forms that submit back to themselves.

 

Now I want to break up my code.

 

I usually have this PHP at the top of my forms...

 

<?php
// ********************************************
// HANDLE FORM.							 *
// ********************************************
if ($_SERVER['REQUEST_METHOD']=='POST'){
	// Form was Submitted (Post).

 

 

If I change my Form Action to point to another script, will this code work in that new script??  (In other words, will Script_B be able to detect $_SERVER['REQUEST_METHOD']=='POST' ??)

 

Thanks,

 

 

 

Debbie

 

 

Link to comment
https://forums.phpfreaks.com/topic/246253-question-about-form-submitted/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.