Html/php

Merry Christmas. i’m trying to code up a dark figured page with input boxes
with values in them which will be displaced with user input. You guys have
been great helping with my pastime and I hope will now. I’m including my
feeble attempt below:

<html><body background="oldorchard.jpg "bgcolor="#ccffff"><b><center>
<?php
// echo "date("m/d/Y");

<input type=text size=25 value="Invoice<? echo '$acctno'?></b><br />";

/****** I think the above line is closest to being the right code ******/

echo "Invoice No: $acctno</b><br />";
include ('getpercent');
// error_reporting(E_ALL ^ E_NOTICE);
error_reporting(0)
$result=mysql_query($query);
$num=mysql_numrows($result);
while($row = mysql_fetch_array($result))
{
mysql_select_db('homedb') or die( "Unable to select database");
$query="SELECT  * FROM oocust WHERE payrec = 'R' && pd = ' '";
$result=mysql_query($query);
$num=mysql_numrows($result);
echo date('m/d/y');
$result=mysql_query($query);
if(mysql_num_rows($result))
   {
while(list($acctno, $orderno, $bname, $bstreet,
$bcity, $bstate, $bzip,  $sname, $sstreet, $scity,
$sstate, $szip, $terms, $fob, $descr, $charges,  $tax, $amtdue)= mysql_fetch_row($result))
   {
<TABLE BORDER="1" CELLPADDING="10" CELLSPACING="10">
       <TD>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="3">
       <TD>
<TABLE BORDER="1" CELLPADDING="1" CELLSPACING="1">

<td><input type=text size=25 value="Bill To:"><br>


/***** below another attempt *****/
      <input type=text size=25 value="$bname"><br>

      <input type=text size=25 value="$bname"><br>
  <input type=text size=25 value="$bstreet:">><br>
      <input type=text size=25 value="$bcity"><br>
     <input type=text size=25 value="$bstate"><br>
       <input type=text size=25 value="$bzip"></TD><p>
     <td>
<input type=text size=25 value="Ship To:"><br>
 <input type=text size=25 value="$sname:"><br>
 <input type=text size=25 value="$street"><br>
  <input type=text size=25 value="$scity"><br>
 <input type=text size=25 value="$sstate"><br>
   <input type=text size=25 value="$szip"><p></TD>
      <tr>
    <td>
     <input type=text size=25 value="Terms: $terms"><br>
<input type=text size=25 value="Due Date: $duedate"><br>
<input type=text size=25 value="Order No: $orderno"></TD>
      <TD>
<img src="dave pic.jpg" width=250 height=350></td>
}
}
}
?>
   </b></BODY></HTML>

So whats your question / issue?

Really 2 questions: I’m trying to create a page, currently combining HTML with
PHP, with text:
example 1 (<input type=“text” value=“name”>)
or a field from a database:
example 2 ( <?php echo “<input type=“text” size=25 Invoice $acctno></b><br />”:wink:
 within, which are displaced by user(me) input.
I know my previous post was garbage and verbose and I’ve gotten some really snotty
replies. I will appreciate an answer to these 2 questions from this post.
Thanks in advance

Not sure if I understand you correctly but if you want to echo a PHP variable as the value of the input you need to do it in the value attribute. For example

<input type="text" value="name" value="<?php echo $name; ?>" />