PHP help please

Associate
Joined
13 Nov 2003
Posts
1,567
Location
Manchester
Hi Al

Working on a project for work and am stuck.

I have a page called addorder.php which contains a form. It posts its data to do_addorder.php which inserts it into the DB. Now on this page I need a link or button that opens a popup window and echos the fields, print a copy of the data for the customer to take away. Im guessing the best way would be to use a form with hidden fields which I can do, its the popup part that is going to be the issue, and getting the data into the popup.

What are the best ways of going about this, and could any volunteer some help.

Thanks
Aaron
 
Hehe

Thanks guys. Massive help as usual.

Right I need some more help. I have this code

Code:
<form action="do_editmodel.php" method="post">
<input name="model" type="text" value="$model" />
<select name="active" value="$active">
  <option value="Yes">Yes</option>
  <option value="No">No</option>
  </select>
  <input name="sumbit" type="submit" value="Save Changes" /></form>
  <form action="do_deletemodel.php" method="post">
  <input name="id" type="hidden" value="$id" /><input name="delete" type="submit" value="Delete Record"/></form>

I want to use that code and loop it for every record in the DB. I know how to get the data out of the DB but I am not sure how to loop int. And also how that code needs to be formatted for use from within a chunk of php.

Thanks again
Aaron
 
Back
Top Bottom