mindapolis Posted October 28, 2011 Share Posted October 28, 2011 could someone tell me what goes in the action part of a form? I have a website with 2 forms, one is a product catalog and a checkout page. Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/ Share on other sites More sharing options...
requinix Posted October 28, 2011 Share Posted October 28, 2011 The form action is where the form information gets submitted to. Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/#findComment-1283147 Share on other sites More sharing options...
mindapolis Posted October 29, 2011 Author Share Posted October 29, 2011 So, on the catalog page the action would be checkout.php and on checkout.php the action would be php_self, right? Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/#findComment-1283179 Share on other sites More sharing options...
Pikachu2000 Posted October 29, 2011 Share Posted October 29, 2011 No. That isn't a valid form action. To submit a form to itself, use action="" Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/#findComment-1283190 Share on other sites More sharing options...
killervastu Posted November 13, 2011 Share Posted November 13, 2011 suppose,if i am having a forum in login.php why cant i submit it to itself like <form name="form1" action="login.php"> whats the difference between them the one mentioned in above post and the one mentioned in this post Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/#findComment-1287720 Share on other sites More sharing options...
cwsmith Posted November 19, 2011 Share Posted November 19, 2011 You can submit a form to itself; you just check at the beginning that the form was submitted and process that input, otherwise show the form. (hope I understood your question right..) Quote Link to comment https://forums.phpfreaks.com/topic/250017-form-action/#findComment-1289472 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.