NYCPHP Meetup

NYPHP.org

[nycphp-talk] next challenge

Chris Bielanski Cbielanski at inta.org
Wed Feb 23 10:26:54 EST 2005


Sorry, I forgot to protoype the EDIT button:
<input type="button" name="editButton<?=$ID?>" id="editButton<?=$ID?>"
onclick="window.location.href='myEditPage.php?op=EDIT&recordid=<?=$ID?>(&any
other args)';">Edit</button>
 
:)

Thanks, 
Chris Bielanski 
Web Programmer, 
International Trademark Association, 
655 Third Avenue, 10th Floor 
New York, NY 10017-5617 USA 
+1 (212) 642-1745, f: +1 (212) 768-7796 
mailto:cbielanski at inta.org <mailto:cbielanski at inta.org> , www.inta.org  
INTA -- 125 Years of Excellence 

-----Original Message-----
From: Chris Bielanski [mailto:Cbielanski at inta.org]
Sent: Wednesday, February 23, 2005 10:24 AM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] next challenge


You could add an "operation" argument to your list/view page:
<input type="hidden" name="op" id="form_op" value="(Edit | View | New |
etc.)">
 
Then next to each record, your EDIT button passes the record's ID and the
EDIT operation to your action page. When I see EDIT as the op, I redirect to
the Edit page or whatever means I've built to edit a record, (which happens
in a current case to be the same page as my list page).
 

Thanks, 
Chris Bielanski 
Web Programmer, 
International Trademark Association, 
655 Third Avenue, 10th Floor 
New York, NY 10017-5617 USA 
+1 (212) 642-1745, f: +1 (212) 768-7796 
mailto:cbielanski at inta.org <mailto:cbielanski at inta.org> , www.inta.org  
INTA -- 125 Years of Excellence 

-----Original Message-----
From: Freeman, Joshua [mailto:j at nybg.org]
Sent: Wednesday, February 23, 2005 10:05 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] next challenge



So,

I can now create a page that reaches into the database, grabs all the
records and then displays the first 10 records (or however many I want to
set it to) and displays buttons for the next 10, etc... 

I also have a form so that people can add new records to the database.

going back to the issue of displaying records in the database, I want set up
the ability to bring up a record-edit form by clicking on the name of the
Botanical garden... any pointers?

J.

Joshua S. Freeman
Director, Information Technology, NYBG
v: 718 817 8937 m: 347 392 2560
jfreeman at nybg dot org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20050223/099d5f86/attachment.html>


More information about the talk mailing list