Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: patterson20050620

Message # 1510233:
Date: 09/13/07 01:07
By: ramki
Subject: function calling through button click in php

hi friends,
i don't know how to calling function through button click. code is :
<?php
function chint($number)
{
if($number > 1)
{
return(chint($number-1));
}
elseif($number<0)
{
return(chint((-1)*$number-1));
}
else
{
if(($number>0) AND ($number<1))
{
return("no");
}
else
{
return("yes");
}
}
}
echo "<form name='myform' method='post'><input type='text' name='in'/><input type='submit' value='Test' name='submit'/></form>";
if(isset($_POST['submit']))
{
echo "hai";
$ss=$_POST['in'];
print($ss."an integer?" .chint($ss)."<br>\n");
}
?>

Previous Message | Next Message


Comments:
function calling through button click in phpramki09/13/07 01:07
loging visiter detailssampath07/22/05 08:13
"check()"?random07/14/05 12:12
mysql databaseKathy07/13/05 22:22
regd drawing 3d graphRamesh07/12/05 11:15
OOh formsaymen jaber07/09/05 04:30
RE: WANT TO LEARN HOW TO WRITE A PHP SCRIPTallen nahabwe07/05/05 08:32
Hope can have a sample coding for cart!EDWARD07/03/05 23:20
php scriptingwayne lizotte07/01/05 12:46
WANT TO LEARN HOW TO WRITE A PHP SCRIPTToyin Balogun06/28/05 09:38
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.