
The icing on the cake!
It would be nice if the user could type in ‘www.j2e.com/myAccount/myForm?results’
and see the results from their form in an html table,
eg www.just2easy.com/results.htm
It would be nice if the user could type in ‘www.j2e.com/myAccount/myForm?results’
and see the results from their form in an html table,
eg www.just2easy.com/results.htm
I don't think this would be hard to achieve.
fileshow.php would pick off the ?results and send it to some other php, with the correct fileId.
We would have to check that the 'allow others to view form results' flag was set.
Then, just read in the CSV file, and spout it out like this....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- -->
<!-- Generated by www.j2e.com -->
<!-- Date: Wed Jan 30 08:38:47 GMT 2008 -->
<!-- -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
results</title>
type="text/css">
</style>
</head>
<body>
<table border cellspacing=1 cellpadding=5>
<tr>
<th>surname</th>
<th>with_chips</th>
<th>main_course</th>
<th>comments</th>
<th>day</th>
<th>date_time</th>
</tr>
<tr>
<td>Geoff</td>
<td>on</td>
<td>ham</td>
<td>no source</td>
<td>Sunday</td>
<td>Thu, 31 Jan 2008 16:29:07 +0000</td>
</tr>
<tr>
<td>Sarah</td>
<td>off</td>
<td>eggs</td>
<td>Ketchup!</td>
<td>Monday</td>
<td>Thu, 31 Jan 2008 16:29:23 +0000</td>
</tr>
<tr>
<td>James</td>
<td>on</td>
<td>ham</td>
<td>Glutin free please</td>
<td>Tuesday</td>
<td>Thu, 31 Jan 2008 16:29:44 +0000</td>
</tr>
</table>
</body>
</html>
fileshow.php would pick off the ?results and send it to some other php, with the correct fileId.
We would have to check that the 'allow others to view form results' flag was set.
Then, just read in the CSV file, and spout it out like this....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- -->
<!-- Generated by www.j2e.com -->
<!-- Date: Wed Jan 30 08:38:47 GMT 2008 -->
<!-- -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
results</title>
type="text/css">
</style>
</head>
<body>
<table border cellspacing=1 cellpadding=5>
<tr>
<th>surname</th>
<th>with_chips</th>
<th>main_course</th>
<th>comments</th>
<th>day</th>
<th>date_time</th>
</tr>
<tr>
<td>Geoff</td>
<td>on</td>
<td>ham</td>
<td>no source</td>
<td>Sunday</td>
<td>Thu, 31 Jan 2008 16:29:07 +0000</td>
</tr>
<tr>
<td>Sarah</td>
<td>off</td>
<td>eggs</td>
<td>Ketchup!</td>
<td>Monday</td>
<td>Thu, 31 Jan 2008 16:29:23 +0000</td>
</tr>
<tr>
<td>James</td>
<td>on</td>
<td>ham</td>
<td>Glutin free please</td>
<td>Tuesday</td>
<td>Thu, 31 Jan 2008 16:29:44 +0000</td>
</tr>
</table>
</body>
</html>