Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to post back the data by selecting a value from drop down list

Reply
Thread Tools

How to post back the data by selecting a value from drop down list

 
 
Kuna
Guest
Posts: n/a
 
      11-20-2006
Hi All,

I have a problem in populating data by selecting a value from a drop
down list I do not have the sample code for this, so I am extremly
sorry but I can explain my problem.

I have a HTML form and I will convert the form to a .pl (PERL) script.
In the form I have a drop down list which will have the values 1 to 5
to allow me enter that much number of information in some trext fields
like First Name:, Last Name:, Phone Number:. Hence I need the form will
reload after selecting a value from the drop down only it suppose to
generate the fields according to the numbers I had selected. So pease
help me, its urgent for me. I will be grateful to you all.


Thanks in Advance,
Kuna

 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      11-20-2006
Kuna wrote:
> I have a problem in populating data by selecting a value from a drop
> down list I do not have the sample code for this


That is nonsensical. If you have a problem that you're currently
working on, you have the code. You say as much later on - that you
"have a HTML form".

> , so I am extremly
> sorry but I can explain my problem.
>
> I have a HTML form and I will convert the form to a .pl (PERL) script.


HTML cannot be converted to Perl. That is also nonsensical. Do you
mean that the action of the form is a CGI script written in Perl?

> In the form I have a drop down list which will have the values 1 to 5
> to allow me enter that much number of information in some trext fields
> like First Name:, Last Name:, Phone Number:. Hence I need the form will
> reload after selecting a value from the drop down only it suppose to
> generate the fields according to the numbers I had selected.


This has NOTHING to do with Perl. It has everything to do with HTML
and Javascript. If you want something to happen client-side when you
select an option on the <select> tag, you need to use Javascript.
That's true whether what you want to happen is either A) populate or
manipulate the form inputs directly or B) submit the form to the CGI
script, which will process the posted data and output a new HTML form.

> So pease
> help me, its urgent for me. I will be grateful to you all.


This kind of notation is likely to get you *less* help, not more. An
urgency for you is a failure to plan on your part, not an emergency on
ours.

To maximize the help you can get from this group, please read the
Posting Guidelines, posted here twice each week.

Paul Lalli

 
Reply With Quote
 
 
 
 
Kuna
Guest
Posts: n/a
 
      11-20-2006

Paul Lalli wrote:
> Kuna wrote:
> > I have a problem in populating data by selecting a value from a drop
> > down list I do not have the sample code for this

>
> That is nonsensical. If you have a problem that you're currently
> working on, you have the code. You say as much later on - that you
> "have a HTML form".
>
> > , so I am extremly
> > sorry but I can explain my problem.
> >
> > I have a HTML form and I will convert the form to a .pl (PERL) script.

>
> HTML cannot be converted to Perl. That is also nonsensical. Do you
> mean that the action of the form is a CGI script written in Perl?
>
> > In the form I have a drop down list which will have the values 1 to 5
> > to allow me enter that much number of information in some trext fields
> > like First Name:, Last Name:, Phone Number:. Hence I need the form will
> > reload after selecting a value from the drop down only it suppose to
> > generate the fields according to the numbers I had selected.

>
> This has NOTHING to do with Perl. It has everything to do with HTML
> and Javascript. If you want something to happen client-side when you
> select an option on the <select> tag, you need to use Javascript.
> That's true whether what you want to happen is either A) populate or
> manipulate the form inputs directly or B) submit the form to the CGI
> script, which will process the posted data and output a new HTML form.
>
> > So pease
> > help me, its urgent for me. I will be grateful to you all.

>
> This kind of notation is likely to get you *less* help, not more. An
> urgency for you is a failure to plan on your part, not an emergency on
> ours.
>
> To maximize the help you can get from this group, please read the
> Posting Guidelines, posted here twice each week.
>
> Paul Lalli


Thanks Paul,

I got your point that we can only use JavaScript for this purpose. I
was new to these so I am not familiar with all those things so I am
sorry again for the less information I had provided. I will must go
through the posting guidelines before posting my next post.

Thanks again,
Kuna

 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      11-20-2006
Kuna wrote:
> I got your point that we can only use JavaScript for this purpose.


That's not what Paul told you.

Actually I just posted some Perl code at
http://www.thescripts.com/forum/thread566345.html

> I will must go
> through the posting guidelines before posting my next post.


Yeah, you'd better do that. But even more imporant is that you stop
multi-posting: http://lipas.uwasa.fi/~ts/http/crospost.html

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
Tad McClellan
Guest
Posts: n/a
 
      11-21-2006
Kuna <> wrote:

> I have a problem in populating data by selecting a value from a drop
> down list I do not have the sample code for this,



Why not?


> So pease
> help me, its urgent for me.



I was going to help you, but since it was posted several hours ago,
and it was urgent, you are probably already dead, so there doesn't
seem to be much point.


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Kuna
Guest
Posts: n/a
 
      11-21-2006

Gunnar Hjalmarsson wrote:
> Kuna wrote:
> > I got your point that we can only use JavaScript for this purpose.

>
> That's not what Paul told you.
>
> Actually I just posted some Perl code at
> http://www.thescripts.com/forum/thread566345.html
>
> > I will must go
> > through the posting guidelines before posting my next post.

>
> Yeah, you'd better do that. But even more imporant is that you stop
> multi-posting: http://lipas.uwasa.fi/~ts/http/crospost.html
>
> --
> Gunnar Hjalmarsson
> Email: http://www.gunnar.cc/cgi-bin/contact.pl


Hi Gunnar,

Thanks for the suggestion, but I was looking for the solution of my
problem with some reliable answer. So I had posted in different forums
in your words multi-posting. I was not really trieng to do any kind of
nonsence things but my requirement makes me to do so. Sorry again to
all my members if I had done any thing wrong.

Thanks again,
Kuna

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
drop down list - auto post back - please wait C10B ASP .Net 11 03-13-2007 06:28 PM
retrive preselected value in second drop down list from the first drop down list weiwei ASP .Net 0 01-05-2007 07:29 PM
Auto Drop down a Drop Down List xxbmichae1@supergambler.com Javascript 5 11-23-2005 01:35 AM
New to .NET, can I have one drop down box control the data of another drop down box using a database? SirPoonga ASP .Net 2 01-07-2005 10:44 PM



Advertisments