Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

In my Php code i have this table with project title and completion percentage

In my Php code i have this table with project title and completion percentage with a text area to leave comments. After the user clicks submit it will take them via the POST method to the “actionhandle.php page showing the results. I need help placing the summarized data in a table and to show the date and time. I have samples of my code posted below along with screen shots of both outputs.

here is my html code for the Project table, completion percentage and comments section (action.php)

<form action=”actionhandle.php” method=”POST”>

<table style=”text-align: left; width: 374px; height: 724px;” border=”2″ cellpadding=”2″ cellspacing=”2″>

<tbody>

<tr>

<td style=”vertical-align: top;”>Project Title<br>

</td>

<td style=”vertical-align: top;”>Completion Percentage<br>

</td>

<td style=”vertical-align: top;”>User Comments:<br>

</td>

</tr>

<tr>

<td style=”vertical-align: top;”>Weapon I<br>

</td>

<td style=”vertical-align: top;”>90%<br>

</td>

<td style=”vertical-align: top;”><textarea style=”height: 100px; width: 100px;” cols=”1″ rows=”1″ name=”comment1″></textarea></td>

</tr>

<tr>

<td style=”vertical-align: top;”>Weapon II<br>

</td>

<td style=”vertical-align: top;”>65%<br>

</td>

<td style=”vertical-align: top;”><textarea style=”height: 100px; width: 100px;” cols=”1″ rows=”1″ name=”comment2″></textarea></td>

</tr>

<tr>

<td style=”vertical-align: top;”>Omega Red<br>

</tr>

</tbody>

</table>

&nbsp;<button style=”height: 100px; width: 100px;” value=”submit” name=”submit”>Submit Report</button><br>

</form>

<br>

</body></html>

//Here is my PHP code after the user clicks submit “actionhandle.php”

<?php

echo “Report and comments<br>”;

//need to display current date and time

$comm=$_POST[‘comment1’];

$comm2=$_POST[‘comment2’];

$comm3=$_POST[‘comment3’];

$comm4=$_POST[‘comment4′];

// Need to place submitted data in a table

echo “<table border=’1′>”;

//echo $project .” “.$completion .” “.$comms.'<br>’;

echo “<tr>

<th> Project </th>

<th> Completion </th>

<th> comment </th>

</tr>”;

echo ‘WeaponI’ .” “.’60%’.” “.$comm. “</br>”;

echo ‘WeaponII’.” “.’65%’ .” “.$comm2.'<br>’;

echo ‘Omega Red’.” ” .’100%’. ” “.$comm3.'<br>’;

echo ‘Maverick’.” “. ‘98%’.” “.$comm4.'<br>’;

?>

here are pictures of both outputs:

This is the Main table with the text area and submit button (action.php)

action1.PNG

Here is the results page, i need to place the results in a table also to display the date and time. (actionhandle.php)



action.PNG

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"