动态选择列表问题。 [英] Dynamic Pick list question.

查看:43
本文介绍了动态选择列表问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我想知道是否有人可以指出我正确的方向

弄清楚如何创建动态表单。我一直在开发perl和oracle中的
程序,并且最近已经切换到php。


我需要创建一个包含五个独立选择列表中的四个的表单每个选项列表中的每个项目取决于用户以前的输入。

如果用户选择福特,那么Taurus,Ranger,焦点,.etc显示

在下一个选择列表中然后用户选择Ranger和2轮驱动,4

轮驱动等显示在下一个选择列表框中等等。


如果每次用户输入后屏幕都被刷新,我知道怎么做。什么

我想弄清楚如何让屏幕自动更新

每个选择列表而不刷新整个屏幕。

任何帮助或指示会很棒!


谢谢


马克

解决方案

Mark Winter写道:

你好,

我想知道是否有人可以指出我正确的方向来确定如何创建动态表单。我一直在用perl和oracle开发程序,最近已经切换到了php。

我需要创建一个包含五个单独选择列表中的四个的表单。
每个每个选择列表中的项目取决于用户之前的输入。
如果用户选择福特,然后Taurus,Ranger,Focus,.etc显示
在下一个选择列表中,那么用户选择Ranger和2轮驱动,4轮驱动等显示在下一个选择列表框中等等。

如果在每次用户输入后屏幕被刷新,我知道如何做到这一点。什么
我想知道如何让屏幕自动更新每个选择列表而不刷新整个屏幕。

任何帮助或指示都会很棒!

谢谢

马克




马克,


你可以''在PHP中执行此操作。 PHP只是客户端;要做到这一点没有

刷新会要求所有信息都发送到客户端,然后

由客户端语言(如javascript)处理。

-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


对,


我知道你必须使用服务器端的javascript,但是如何?...


谢谢

马克



马克,

你不能在PHP中执行此操作。 PHP只是客户端;如果没有刷新就需要将所有信息发送到客户端,然后用客户端语言(如javascript)进行处理。



Mark Winter写道:

对,

我知道你必须使用服务器端的javascript,但是如何?...


谢谢

马克



马克,
<你不能用PHP做到这一点。 PHP只是客户端;如果没有刷新,则需要将所有信息发送到客户端,然后通过客户端语言(如javascript)进行处理。




不,javascript客户端。所以你需要使用像PHP

这样的服务器端处理,以及javascript用于客户端。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Hello,

I am wondering if someone could point me in the right direction to
figure out how to create a dynamic form. I have been developing
programs in perl and oracle and have recently switched to php.

I need to create a form that has four of five seperate pick list on it.

Each item in each of the pick list depend on the users previous entry.
For instence if the user picks Ford then Taurus, Ranger, Focus,.etc show
up in the next pick list then the user picks Ranger and 2 wheel drive, 4
wheel drive, etc show in the next pick list box on so on.

I know how to this if the screen is refresed after each user entry. What
I would like to fugure out how to make the screen automatically update
each pick list and not refreshing the whole screen.
Any help or instruction would be great!

Thanks

Mark

解决方案

Mark Winter wrote:

Hello,

I am wondering if someone could point me in the right direction to
figure out how to create a dynamic form. I have been developing
programs in perl and oracle and have recently switched to php.

I need to create a form that has four of five seperate pick list on it.
Each item in each of the pick list depend on the users previous entry.
For instence if the user picks Ford then Taurus, Ranger, Focus,.etc show
up in the next pick list then the user picks Ranger and 2 wheel drive, 4
wheel drive, etc show in the next pick list box on so on.

I know how to this if the screen is refresed after each user entry. What
I would like to fugure out how to make the screen automatically update
each pick list and not refreshing the whole screen.
Any help or instruction would be great!

Thanks

Mark



Mark,

You can''t do this in PHP. PHP is client-side only; to do it without
refreshing would require all the info be sent to the client, then
processed by a client-side language such as javascript.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Right,

I know you have to use server side javascript, but how?...


Thanks

Mark


Mark,

You can''t do this in PHP. PHP is client-side only; to do it without
refreshing would require all the info be sent to the client, then
processed by a client-side language such as javascript.



Mark Winter wrote:

Right,

I know you have to use server side javascript, but how?...


Thanks

Mark



Mark,

You can''t do this in PHP. PHP is client-side only; to do it without
refreshing would require all the info be sent to the client, then
processed by a client-side language such as javascript.



No, javascript it client side. So you need to use something like PHP
for the server side processing, and javascript for the client side.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于动态选择列表问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆