Lively discussions on the graphic arts and publishing — in print or on the web

Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-27-2009, 03:06 PM   #1
Join Date: Oct 2005
Location: Manchester, NH
Posts: 65
Default Calling HTML sub-pages with PHP?

Assistance needed, please:

I may be about to plunge into a PHP project somewhat more complex than any I've tried before with web programming. This project will involve creating work order type records -- that is, a single object that includes a set of header data which is entered once, then one or more sets of data for child record(s). I know this means using two tables in the background: a Work Order table for the header data and a Work Items table for the individual items. What I'm not sure of is the best way to generate the user interface for it.

Now, I can already see at least one possible way to implement this: a linear sequence of PHP scripts which lets the user enter the header data, then enter as many work items as they want, one at a time, and each time one form calls another, all the data involved is stored and forwarded from caller to callee using database fields, session variables, and/or cookies. However, this strikes me as an ugly and inelegant way to do it. What I'd really like to be able to do is have an interactive HTML form (call it P for Parent) that displays the work order data as a header, then all existing work items for that order in a tabular format. Each item has two buttons, Edit and Delete, and at the bottom is a button for "Add New Row". Clicking any of these buttons temporarily suspends P, calls a separate script (call it C for Child) which works like a function: it appears, does its thing, then returns control to P at exactly the point where P was suspended, at which point P looks at what was done, and redisplays the work order info with whatever changes were just made.

I guess what I'm asking is: is it possible to create a program stack with PHP, or is the rule "one script/page at a time, no returns to higher levels, and all communication between scripts must be by way of passed form variables, cookies, session variables, and/or stored database values?" If that is the rule for PHP, then is there another Web programming language that does permit program stacks?

-- Jon W.
jwoolf09 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling All Fonts George Fonts & Typography 36 03-01-2008 06:42 PM
Pages in iWorks 08 Bensheim Software 2 11-11-2007 06:55 AM
Calling Bob Dylan and Type fans.... imatt The Corner Pub 1 09-30-2007 11:46 AM
Legacy Pages Out There? dthomsen8 Web Design 4 08-18-2007 06:01 AM
HTML is Dead. Long live HTML. Five that is... CarlSeiler Web Design 3 07-30-2007 11:04 PM

All times are GMT -8. The time now is 08:54 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Contents copyright 2004–2018 Desktop Publishing Forum and its members.