The Cache: Technology Expert's Forum

Level 2 Cache: Speciality Items => PHP => Topic started by: NYDAz on June 24, 2009, 10:26:13 AM



Title: which way for an interface ?
Post by: NYDAz on June 24, 2009, 10:26:13 AM
i've created a little php script to do his thing !

now i want to create a interface ! should I go for forms ?


Title: Re: which way for an interface ?
Post by: nutballs on June 24, 2009, 10:36:40 AM
if I didnt know better, I would think this was a bot post...
try again with complete sentences, LOL


Title: Re: which way for an interface ?
Post by: NYDAz on June 24, 2009, 10:47:15 AM
if I didnt know better, I would think this was a bot post...
try again with complete sentences, LOL

 :o  :roflmao:

let me rephrase that !

I've created a little script that executes something !

now ... for my own selfish purpose ... i want to be organized !

i want to create an html interface for that script (written in php) !

Now I think the best thing is to create a form where I can input my details and then just click a button to execute the script !

My question was that if are other methods to create an interface for php scripts beside forms !

Execuse my english !  :-[  :-[  :-[

 :pray:


Title: Re: which way for an interface ?
Post by: nutballs on June 24, 2009, 11:08:14 AM
it wasnt an english problem, lol

it was a lack of info problem.

anyway, yes forms are really the only choice. Im sure someone can get into a symantic argument with me about building interactions using ajax without forms technically, but that is pointless. just use forms.

however...
the next thought you should consider is, how much time you want spend on using that form, and how much you could automate.


Title: Re: which way for an interface ?
Post by: perkiset on June 24, 2009, 11:21:10 AM
Forms are one way, but they offer some interesting problems with the Back button and such. Personally I use all Ajax to issue requests, because I can get a much more dynamic response and don't have to deal with page loads.

Consider this JS class: http://www.perkiset.org/forum/javascript_code_repository_examples/ajax_requestor_class-t38.0.html

... there are instructions on how to use it in the thread. It's not tough at all, just a different way of thinking. My personal management sites (and even moreso, those for my clients) are all Ajax. In fact, my personal management sites are only a single page now, with EVERYTHING being Ajax with the exception of the initial log in.

Ping back if you want to try this route, I can help.