stringertv Posted February 11, 2009 Share Posted February 11, 2009 Hey Guys I'm looking to setup a page on a fire dept website to track when vehicles are taken out of service by the mechanic and for what reason. I've only done the most basic of mail scripting so I'm greener that green here. I want that info when submitted to display on the same page as the form in a table. I've searched like crazy and can't see if it's a possibility. Maybe it's so easy Im missing it. It seems like a basic process. Any help would be great....after you stop laughing at my ineptness. Link to comment https://forums.phpfreaks.com/topic/144827-getting-form-data-to-display-in-a-page/ Share on other sites More sharing options...
The Little Guy Posted February 11, 2009 Share Posted February 11, 2009 I think this is what you are searching for... <!-- Form is here assuming your using method="post" --> <?php echo $_POST['fieldNam1'].'<br />'; echo $_POST['fieldNam2'].'<br />'; echo $_POST['fieldNam3'].'<br />'; // Etc. Etc. Etc. ?> Link to comment https://forums.phpfreaks.com/topic/144827-getting-form-data-to-display-in-a-page/#findComment-759995 Share on other sites More sharing options...
stringertv Posted February 11, 2009 Author Share Posted February 11, 2009 ???Yeah i was on that track but it loads a new page and shows just that item submitted. I am looking to form a list of items submitted and track them on the same page with a table that goes on and on(for as long as someone keeps adding vehicles) <form name="form1" method="post" action="testingformpage.php"> <table width="100%" border="1" cellpadding="6"> <tr> <td width="14%"><label for="fieldNam1">Date:</label> <input type="text" name="fieldNam1" id="fieldNam1"></td> <td width="14%"><label for="fieldNam2">Vehicle:</label> <input type="text" name="fieldNam2" id="fieldNam2"></td> <td width="14%"><label for="fieldNam3">Reason/Problem</label> <input type="text" name="fieldNam3" id="fieldNam3"></td> <td width="14%"><label for="fieldNam4">Person Making Report:</label> <input type="text" name="fieldNam4" id="fieldNam4"></td> <td width="12%"><label for="fieldNam5">Badge:</label> <input type="text" name="fieldNam5" id="fieldNam5"></td> <td width="14%"><label for="fieldNam6">Date OOS:</label> <input type="text" name="fieldNam6" id="fieldNam6"></td> <td width="6%"><label for="submit"></label> <input type="submit" name="submit" id="submit" value="Submit"></td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/144827-getting-form-data-to-display-in-a-page/#findComment-760027 Share on other sites More sharing options...
The Little Guy Posted February 11, 2009 Share Posted February 11, 2009 If you want to track the items, they you will want to have a database, which will store the items. Link to comment https://forums.phpfreaks.com/topic/144827-getting-form-data-to-display-in-a-page/#findComment-760042 Share on other sites More sharing options...
jjacquay712 Posted February 11, 2009 Share Posted February 11, 2009 try learning php and sql, tizag.com is a great tutorial site to learn. Link to comment https://forums.phpfreaks.com/topic/144827-getting-form-data-to-display-in-a-page/#findComment-760045 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.