Jump to content

Form Trouble


Mild Fuzz

Recommended Posts

Hey, pretty new round here but hopefully will be coming back more and more, as I progress deeper into the world of PHP

 

I have been trying to create a wordpress plugin, and I am almost there, but I can't get a form to submit to itself. Here is what I have:

 

$mf_table_output .= "<form action=\"";
$mf_table_output .= $PHP_SELF;
$mf_table_output .= "\" method=\"post\">";
$mf_table_output .= "<input type=\"button\" name=\"submit\" value=\"submit\"  />	</form>";

echo $mf_table_output;

 

And this is verify if the button has been pressed

 

if(isset($_POST['submit'])){
echo "hi lover!!";
};

 

Link to comment
https://forums.phpfreaks.com/topic/183718-form-trouble/
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.