bluwe Posted November 17, 2006 Share Posted November 17, 2006 I'm new to php so this might sound like a stupid question...From what I've learned so far you process information in a form by using the action=processform.php in the form tags. This calls the processform.php script which processes what the user put in the form with a sql query or whatever. What I want to know is, is it possible to process a form within the same page where the form lives rather than calling another script?Cheers Link to comment https://forums.phpfreaks.com/topic/27629-form-processing/ Share on other sites More sharing options...
fert Posted November 17, 2006 Share Posted November 17, 2006 <form method="method" action="<?$_SERVER[PHP_SELF]?>"> Link to comment https://forums.phpfreaks.com/topic/27629-form-processing/#findComment-126358 Share on other sites More sharing options...
bluwe Posted November 17, 2006 Author Share Posted November 17, 2006 Sweet - cheers mate Link to comment https://forums.phpfreaks.com/topic/27629-form-processing/#findComment-126362 Share on other sites More sharing options...
trq Posted November 17, 2006 Share Posted November 17, 2006 Leaving the action attribute out of the form is easier. eg;[code]<form method="POST">[/code] Link to comment https://forums.phpfreaks.com/topic/27629-form-processing/#findComment-126365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.