GUI for PHP?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Suggestions for a GUI for PHP?

Actually where I am heading with this is, occasionally I think a
thicker client would be called for than the typical browser interface.

What do you use?

Particularly the problem is I am doing a sales order entry form, and
I'd like to be able to add additional line items to the screen as
needed.  The only way I can think to do it is to make a round trip to
the server, which I'd rather not do, or list or 10 or 20 blank form
lines for line item orders.


Re: GUI for PHP?

Bob wrote:
Quoted text here. Click to load it

You could use javascript to build the order lines part of the form


Re: GUI for PHP?

Rick wrote:

Quoted text here. Click to load it

I can see this working, each entry row would look something like this:

  <td><input type="text" size="4" name="quantity[]"></td>
  <td><input type="text" size="35" name="item[]"></td>
  <td><input type="text" size="4" name="price[]"></td>

Then you could store that same string in a javascript variable. Make a
"Add another row" link that would fire the JS function to add the
additional row in the appropriate place.

Then when you process your form on the PHP side, you'd have;

Row 1:
   quantity[0], item[0], price[0]
Row 2:
   quantity[1], item[1], price[1]

<sarcasm>Makes for a lot of fun!</sarcasm>

The only thing you have to worry about then is that the client has JS
enabled, but by the sounds of it, you have some control on the
environment anyway.

Justin Koivisto -

Re: GUI for PHP?


Quoted text here. Click to load it

When would you have it fire?


Re: GUI for PHP?

Ken scratched out in the sand

Quoted text here. Click to load it

I've done this in both PHP and ASP. I cannot currently find my PHP code but
I have the ASP example. It allows for a new row to be entered by clicking a

<input type="button" tabindex="11" value="Add Secondary APN"
onclick="addRow('tblBatch')" id=button1 name=button1>

....which fires off some javascript...

function addRow(id){
    var tbody = document.getElementById(id).getElementsByTagName("TBODY"
 var row = document.createElement("TR");
    var td1 = document.createElement("TD");
    td1.align = 'right';
    td1.appendChild(document.createTextNode("Secondary APN:"));
 var td2 = document.createElement("TD");
    td2.align = 'left';
 var myinput = document.createElement("<INPUT name='txt2APNNo'
id='txt2APNNo' size='20' onBlur=validRequired(this,\"Secondary-APN\")>");

...and adds an item to an array. You just then parse the array when you get
your form submitted.  I even have an onBlur event to ensure that the new
field got filled-out before submitting.

This works fine in Netscape and IE.
kai - kai at 3gproductions dot com ||
"friends don't let friends use windows xp"

Re: GUI for PHP?

*** Bob wrote/escribió (30 Sep 2004 07:16:30 -0700):
Quoted text here. Click to load it

You have these:

WinBinder - /

Quoted text here. Click to load it

That's called DHTML (Dynamic HTML). It's a combination of JavaScript and
DOM (Document Object Model) and it's fairly common.

-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions

Site Timeline