Page 1 of 1
help with this project please
Posted: Wed Nov 25, 2009 3:29 am
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
Re: help with this project please
Posted: Wed Nov 25, 2009 1:17 pm
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>
</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
Re: help with this project please
Posted: Thu Nov 26, 2009 3:02 am
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?
Re: help with this project please
Posted: Thu Nov 26, 2009 4:40 am
by Yasmeen
please anybody reply
i must deliver it today
Re: help with this project please
Posted: Thu Nov 26, 2009 6:46 am
by Yasmeen
up