No program that I know of, but you can do it yourself...
********************
echo "
<HTML>
<HEAD>
<TITLE>Your Title</TITLE>
</HEAD>
<BODY>
<A href='#beginform'>Submit</A><P>
";
mysql_connect(DBhost,DBusername,DBpassword);
if($didsubmit){
$insertsuccessful=mysql(DBname,"insert into tablename (fieldname) values ($field)"
if($insertsuccessful){
echo "Successfully inserted ",$field," into the MySQL database";
}else{
echo "Error! Not able to insert ",$field," into the MySQL database";
}
}
$allsubmissions=mysql(DBname,"select * from tablename"
$numsubmissions=mysql_numrows($allsubmissions);
for($i=0;$i<$numsubmissions;$i++){
$submission=mysql_result($allsubmissions,$i,"fieldname"
echo $submission,"<BR>";
}
echo"
<P>
<A name=beginform> </A>
<FORM method=post action='",$PHP_SELF,"'>
<INPUT type=text name=field value='Initial Form Value'>
<INPUT type=submit name=didsubmit>
</FORM>
</BODY>
</HTML>
";
******************
That's it. Sans my typos, there's what you need for a basic thing. I bolded the variable/field names that are free for you to change so that, in case you're really new at this, you know what to keep and what doesn't have to stay the same. Make sure matching words in bold still match if you change them though, and the database names does have to change according to your own database. Look it over carefully, and just ask if you have questions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.