By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

form processing technique

P: n/a
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #1
Share this Question
Share on Google+
15 Replies


P: n/a
On Apr 26, 9:44 pm, Man-wai Chang <toylet.toy...@gmail.comwrote:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.

--
iTech Consulting Services Limited
Expert of ePOS solutions
Website:http://www.itech.com.hk(IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Ask a Javascript newsgroup.

Apr 27 '07 #2

P: n/a
"Man-wai Chang" <to***********@gmail.comwrote in message
news:46********@127.0.0.1...
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then submit
the form without setting cmdSave, so that I could re-populate the options
for cboB. How should I do it? I don't plan to use AJAX for the moment, but
old techniques.

Dude, how much did you lie in your resume to get that job? I mean these past
few weeks you've been bombarding the group with a myriad of questions as if
you hadn't got any idea what you're doing and a deadline approaching.

--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
Apr 27 '07 #3

P: n/a
Dude, how much did you lie in your resume to get that job? I mean these past
few weeks you've been bombarding the group with a myriad of questions as if
you hadn't got any idea what you're doing and a deadline approaching.
I am a newbie in web app. My employer allows me to learn. So here are
questions that I should have asked an expert in own company. But there
is no web app expert here. :)

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #4

P: n/a
Dude, how much did you lie in your resume to get that job? I mean these past

For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
that's renamed/upgraded to a university. There was no PHP or Java back then.

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #5

P: n/a
Ask a Javascript newsgroup.

What if javascript is banned in a project? How would you implement a
popup window for user to select a value out of a searchable list?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #6

P: n/a
Man-wai Chang wrote:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.
What's the hype with popups? I hate the friggin' things. I fail to see
(exceptions excluded) the benefit of having a popup. If you must, don't
look at PHP for it. Javascript is what you're after.

Is there a project you are working on making you ask a load of questions
about every day? The majority of your posts could simply be answered by:
use google and/or RTFM.

It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Maybe a good primer on PHP is what you really need most right now.
Don't mean to be rude, but please don't abuse the group just because
it's easy to.

Rgds
Sh.
Apr 27 '07 #7

P: n/a
It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.
Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 27 '07 #8

P: n/a
Message-ID: <46********@127.0.0.1from Man-wai Chang contained the
following:
>And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
Erm... all university courses expect you to read the books yourself.

Stop digging.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Apr 27 '07 #9

P: n/a
"Man-wai Chang" <to***********@gmail.comwrote in message
news:46********@127.0.0.1...
And what would you pay for a university course and then the lecturers and
professors just ask you to go home and read the books yourself?

So how much are you paying for the volunteer help you get here? The php
developer community is offering you support FOR FREE. If you don't even try
to look into something yourself and just drop a message to the group every
time you hit a wall, people start feeling you're taking advantage of them if
you do it on daily basis.

--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
Apr 27 '07 #10

P: n/a
Man-wai Chang wrote:
>Ask a Javascript newsgroup.

What if javascript is banned in a project? How would you implement a
popup window for user to select a value out of a searchable list?
You don't. Server-side languages like PHP cannot popup a window on the
client's machine.

If you want it, ask in a Javascript newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #11

P: n/a
Man-wai Chang wrote:
>Dude, how much did you lie in your resume to get that job? I mean
these past

For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
that's renamed/upgraded to a university. There was no PHP or Java back
then.
So? Your training is 17 years old.

I was in college back in the early 70's. There was no Java, PHP, or
even C and C++ back then. In fact, it was almost entirely Fortran,
Cobol and Assembler.

But since then I've learned over a dozen languages - mostly before the
internet was "public access". And I generally didn't have a "mentor"
available. I did it by taking classes, buying books and studying.

I did not bombard newsgroups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #12

P: n/a
Man-wai Chang wrote:
>It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
If you want to pay me my normal consulting rate, I'll be glad to answer
all of your questions. And I'm sure most other people would here, also.

We're all volunteers helping one another. We are not your (unpaid)
personal tutors.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 27 '07 #13

P: n/a
On Fri, 27 Apr 2007 17:55:43 +0800, Man-wai Chang wrote:
>It's quite easy to lose sympathy/support here, it's getting a bit
annoying to see people bypassing the normal route: doing their own
homework and search the net or a manual for answers before falling back
on usenet.

Homework means reading and understanding the codes used by the inventor
of PHP or experienced PHP programmers. That's why I asked.

And if you aren't interested in teaching or code sharing, you could
simply ignore my questions.

And what would you pay for a university course and then the lecturers
and professors just ask you to go home and read the books yourself?
Man-wai. I was trying to get a point across. Of course you're free to
become defensive, but there's no need to. Take a step back, swallow pride,
take a deep breath and see you're not attacked in person.

Really, try to show a bit more effort on your own part wrt the questions
you put forward, be a little more specific about issues you run into, and
we're glad to help out. I know this PHP group has often been qualified as
'very friendly'. So it can't be that we're all brutal cavemen. And I am
sure a good PHP book or two, or a few decent online sources will answer
many of the questions you have asked here.

No offense taken btw.
Sh.

(And yes, sad to inform my Alma Mater required us to plan and do our own
work, be it reading, test lab experiments and what have you. Classical
lecture was mostly reserved for answering questions the self study
material put forward.) ;-)

Apr 27 '07 #14

P: n/a
Hello,

on 04/26/2007 10:44 PM Man-wai Chang said the following:
<form name="frmTest" type="submit" method="post">
<input type="textbox" name="txtA" size=10 value="">
<select name="cboB" value="">
<option value="1">1
<option value="2">1
</select>
<input type="submit" name="cmdSave">
</form>

Normally when I click cmdSave, the form will be submitted, with cmdSave
set.

Now I need to open a popup for selecting a value into txtA and then
submit the form without setting cmdSave, so that I could re-populate the
options for cboB. How should I do it? I don't plan to use AJAX for the
moment, but old techniques.
You can use the form.submit() function when the value is changed.

Now if you want to search or auto-complete a text value, you may want to
take a look at this forms generation and validation class that comes
with a plug-in exactly for that. Here is an example script in action:

http://www.meta-language.net/forms-e..._auto_complete

The class and this and other pĺug-ins are available here:

http://www.phpclasses.org/formsgeneration

Here you can watch tutorial video on this subject:

http://www.phpclasses.org/browse/vid...-complete.html
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Apr 27 '07 #15

P: n/a
Let's go back to PHP programming and algorithms issues. This is not the
place to talk about psychology or authority.

--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Apr 30 '07 #16

This discussion thread is closed

Replies have been disabled for this discussion.