komquat Posted December 13, 2006 Share Posted December 13, 2006 When I have the following for my form, it is not working, can someone help me with that<form method="post" action="$_SERVER[PHP_SELF]"> Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 13, 2006 Share Posted December 13, 2006 what is the entire line of code?use[code]<?php echo '<form method="post" action="' . $_SERVER[PHP_SELF] . '">'; ?>[/code]or[code]<form method="post" action="<?php echo $_SERVER[PHP_SELF]; ?>">[/code] Quote Link to comment Share on other sites More sharing options...
rajesh Posted December 13, 2006 Share Posted December 13, 2006 remove form tag in your code and paste the following content <form method="post" action="<?=$_SERVER[PHP_SELF]; ?>">i will be working in all my sites Quote Link to comment Share on other sites More sharing options...
trq Posted December 13, 2006 Share Posted December 13, 2006 For starters its $_SERVER['PHP_SELF'] not $_SERVER[PHP_SELF], but really, you don't need it in this case.[code]<form method="post">[/code]will suffice. Quote Link to comment Share on other sites More sharing options...
komquat Posted December 13, 2006 Author Share Posted December 13, 2006 Thank you, I got it working with out the action comment Quote Link to comment 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.