well for starters dan I would pass the first element as a string variable that way I could echo the string and see what it actually says ie
$stringtopass = "<html><body> <center>"; $stringtopass .=" <form action=\"%s\" method=post name=\"frmSearch\"><input type=hidden name=search value=yes>"; $stringtopass .=" <table width=300 border=1 bordercolor=black cellpadding=2 cellspacing=0> <tr style=\"font-size: 8pt; font-family: verdana; color: white;\" bgcolor=#003366>"; $stringtopass .=" <th valign=top align=left colspan=2 width=300>Search</th> </tr>"; $stringtopass .=" <tr style=\"font-size: 8pt; font-family: verdana; color: white;\"> <th valign=top align=right width=275 bgcolor=#336699>by Borrower</th>"; $stringtopass .=" <td valign=top align=left width=25 bgcolor=#CCCCCC><input type=checkbox name=borrower value=1></td>"; $stringtopass .=" </tr> <tr style=\"font-size: 8pt; font-family: verdana; color: white;\"> <th valign=top align=right width=275 bgcolor=#336699>by Loan Number</th>"; $stringtopass .=" <td valign=top align=left width=25 bgcolor=#CCCCCC><input type=checkbox name=loan_number value=1 checked></td>"; $stringtopass .= "</tr> <tr style=\"font-size: 8pt; font-family: verdana;\"> <th valign=top align=right width=300 bgcolor=#CCCCCC colspan=2><input type=text name=search_info style=\"width=100%;\"></th>"; $stringtopass .=" </tr> <tr style=\"font-size: 8pt; font-family: verdana;\"> <th valign=top align=right width=300 bgcolor=#CCCCCC colspan=2><input type=submit value=\"SEARCH\"></th>"; $stringtopass .=" </tr> </table> </form> </center> "; what I cant figure out is why your trying to print the serverinfo ($_SERVER['PHP_SELF']) as the second part is the arguements section ie printf("hi my name is %s and your name is %s", $myname, $yourname); maybe you want to use echo if you want it displayed on screen Chris <-- SNIP --> From: "Dan Joseph" <[EMAIL PROTECTED]> > Hi Folks.. > > printf (" > <html> > <body> > > <center> > > <form action=\"%s\" method=post name=\"frmSearch\"> > <input type=hidden name=search value=yes> > > <table width=300 border=1 bordercolor=black cellpadding=2 cellspacing=0> > <tr style=\"font-size: 8pt; font-family: verdana; color: white;\" > bgcolor=#003366> > <th valign=top align=left colspan=2 width=300>Search</th> > </tr> > <tr style=\"font-size: 8pt; font-family: verdana; color: white;\"> > <th valign=top align=right width=275 bgcolor=#336699>by Borrower</th> > <td valign=top align=left width=25 bgcolor=#CCCCCC><input > type=checkbox name=borrower value=1></td> > </tr> > <tr style=\"font-size: 8pt; font-family: verdana; color: white;\"> > <th valign=top align=right width=275 bgcolor=#336699>by Loan > Number</th> > <td valign=top align=left width=25 bgcolor=#CCCCCC><input > type=checkbox name=loan_number value=1 checked></td> > </tr> > <tr style=\"font-size: 8pt; font-family: verdana;\"> > <th valign=top align=right width=300 bgcolor=#CCCCCC colspan=2><input > type=text name=search_info style=\"width=100%;\"></th> > </tr> > <tr style=\"font-size: 8pt; font-family: verdana;\"> > <th valign=top align=right width=300 bgcolor=#CCCCCC colspan=2><input > type=submit value=\"SEARCH\"></th> > </tr> > </table> > </form> > > </center> > ", $_SERVER['PHP_SELF'] > ); > > I have that code, and I get this error: > > Warning: printf(): too few arguments in /home/sites/site8/web/index_test.php > on line 34 > > I cannot for the life of me figure out what the problem is. I've looked > thru archives, examples, and pages of a book all about printf, and this just > doesn't add up to me.. Anyone see the problem? <-- snip --> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php