help with this project please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Yasmeen
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 3:17 am

help with this project please

Post by Yasmeen »

hi everybody

first of all, i'm very new to php
i want to make a website that takes reports from a form and save it in database
then return it as atable in the page

here is my try
please help me

thank you in advance
Attachments
report.rar
(8.19 KiB) Downloaded 12 times
report.rar
(8.19 KiB) Downloaded 6 times
abushahin
Forum Commoner
Posts: 42
Joined: Wed Nov 25, 2009 12:35 pm
Location: london

Re: help with this project please

Post by abushahin »

hey i looked at your code its got most of the stuff but you are missing a form, you have the fields etc even the submit button, so take a better look at it add a form like:

Code: Select all

<form action="store.php" method="post">
<table width="818" height="533" border="0">
<td width="276"><
font size="4">Edited by:</font></td>
<td width="418"><label name="edited_by">
<?php echo $_POST["username"]; ?>
</label>
&nbsp;</td>
<td><label>
<input type="reset" name="Reset" id="button" value="Reset" />
<input type="submit" name="submitbtn" id="submitbtn" value="Submit" />
 </td><tr></form>
Now this will post it to your store.php page because the submit button is in your form before your submit wouldnt have known where to post or get to, then hopefully it should insert into db
hope that helps abu
Yasmeen
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 3:17 am

Re: help with this project please

Post by Yasmeen »

thanx for reply

i attached the whole project
please if you can help me with errors, i tried too much but now i haven't more time

when i click on submit button in adminpage.php it must go to store.php and store data in the database but it don't do that.
another thing is that how can labels' values in adminpage given to textboxes as values in edit report.php when i click on Edit link in adminpage.php
the last is that loginout.php executes index.php several times not just nce , why?
Attachments
reports.sql.zip
(911 Bytes) Downloaded 6 times
part2.rar
(6.31 KiB) Downloaded 8 times
part1.rar
(9.53 KiB) Downloaded 6 times
Yasmeen
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 3:17 am

Re: help with this project please

Post by Yasmeen »

please anybody reply

i must deliver it today
Yasmeen
Forum Newbie
Posts: 4
Joined: Wed Nov 25, 2009 3:17 am

Re: help with this project please

Post by Yasmeen »

up
Post Reply