Jump to content

[SOLVED] quick submiting problem ?


j33baS

Recommended Posts

Hi, this is a simplified script of something i'm trying to do ...  (still pretty new to php)

 

if i click the "go" button, the page reloads, should'nt "submit" be recognised and "sumthing submitted" displayed ?

 

<?php

if ($_POST['submit']) {
echo "sumthing submitted";
}

else {
echo "nothing submitted";
}
?>

<form>
<input type="submit" name="submit" value="Go" method="post">
</form>

Link to comment
https://forums.phpfreaks.com/topic/87051-solved-quick-submiting-problem/
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.