You are here: Re: simple question ! « PHP Programming Language « IT news, forums, messages
Re: simple question !

Posted by Mark ??;-\) on 11/03/05 05:03

> If someone could post a tiny code sample, would be fantasic and much
> appreciated.

I'm still pretty much learning myself, but this is one way. Let me know if
this helps.

-Mark

<?php
$content = "<form name='form1' method='post' action=''>
<input type='submit' name='submit1' value='Submit'>
</form>
<form name='form2' method='post' action=''>
<input type='submit' name='submit2' value='Submit'>
</form>";
print $content;
if (isset($_POST['submit1'])) { //First submit button clicked
print "The first button was clicked";
}
elseif (isset($_POST['submit2'])) { //Second submit button clicked
print "The second button was clicked";
}

//print_r($_POST); //Used for Debugging
?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация