473,569 Members | 2,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pass perl input to php input field

3 New Member
Running two input forms on the same page, one php and the other (the one I would like to create) to be written in perl. The idea is to accept an input from a perl script, then pass that input to two other input fields, one in perl and the other in php. The two existing input fields (perl and php) are stand alone scripts. The perl script searches a flat text data base, while the php script searches a MySQL data base. The end result desired is to accept the one input (the script I want created) and pass it to the other two existing scripts via their input fields, and process the search so the search results can be displayed. Obviously, I want to search both data bases at the same time for the one input.

Hope this makes sense.
Apr 19 '07 #1
5 3179
KevinADC
4,059 Recognized Expert Specialist
not sure I understand your scenario, but you have to decide where to send the initial data for processing, to the php script or the perl script.

php and perl can communicate with each other on the server through various mechanism. But this sounds over complicated, you should stick with one or the other to do the entire thing, both php and perl can process text or query a database. Mixing the two is not very common.
Apr 19 '07 #2
oaktown
3 New Member
Well, the idea was to pass one input to two different stand-alone scripts, each performing a search but with different databases. Since each existing script is fully functional for what they are intended to do, I did not want to modify either of them. Hence a separate new script to pass data input to both scripts. Thereby only requiring the user to input one search criteria and have the two existing scripts perform the search task without the user needing to input the search twice. In other words, the user wold not know that the existing two scripts are doing the search. the user would only see one input field.

I sort of figured it would be complex.
Apr 20 '07 #3
KevinADC
4,059 Recognized Expert Specialist
You can't send the form data to two scripts. You send it to one script. That script communicates with the other script through whatever function or method it uses to pass data to a seperate application and get data back. Then the one script returns all the data from both scripts back to the user.
Apr 20 '07 #4
oaktown
3 New Member
I was afraid that would be the case. I suppose another route would be to import the flat file database into a MySQL database containing the other data that I want to compare it with. Then so as to have each data sets current, run a cron job to merge the data sets. And this scenario is way beyond my expertise.

Thanks KevinADC for your input.
Apr 21 '07 #5
KevinADC
4,059 Recognized Expert Specialist
php and perl can both query a database and parse text files. There is no need to be using both. I guess you don't know how to convert php to perl or perl to php. Don't feel bad, I don't either.
Apr 21 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3227
by: Sherman Willden | last post by:
I am trying to use Perl's XML::Twig to modify a version number in an XML document. At the very end of this posting is an excerpt from the xml document. Just before the xml excerpt is the Perl code I am trying to use. The Xpath part of the script functions well. I think I need help determining the @field entry. I have tried...
6
11001
by: WipeOut | last post by:
I am having a problem in a perl script that I can't seem to find an answer for.. The $cost and $retail vars come from another part of the script and would be something like 000134.345 and 000220.202 respectively.. I an then trying to use these values in a calculation like this.. $profit = ($retail - $cost) / $retail * 100;
6
1687
by: amerar | last post by:
Hi All, I have a form that uses Javascript to validate some fields. Whe the user selects to submit the form with certain values selected, I want to be able to execute a Perl script, query the MySQL database to get my resuts and return an ALERT box to the user if his form input was invalid. Problem is, I do not want to change the...
2
4864
by: pleaseexplaintome | last post by:
Hi I have the following perl/cgi script snippet. The goal of this script is to pass a javascript variable to perl where it can be re-used later. Any help is appreciated, Thanks #!/ois/usr/bin/perl -w use strict; use CGI qw(:standard); my $cgi=new CGI; my $flg=0;
20
2199
by: Shawn Milo | last post by:
I'm new to Python and fairly experienced in Perl, although that experience is limited to the things I use daily. I wrote the same script in both Perl and Python, and the output is identical. The run speed is similar (very fast) and the line count is similar. Now that they're both working, I was looking at the code and wondering what...
21
34359
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready...
66
8132
by: happyse27 | last post by:
Hi All, my html code is sno 1) and perl code is sno 2). a) I tried to print $filename and it cant print out the value, only blank was displayed, and the file could not be uploaded. And it didnt display the html after the perl script executed. Using perl 5.1 and apache 2.2.9 version(apache installed and run without any errors and no...
10
6944
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114....
3
3897
by: happyse27 | last post by:
Hi All, I am creating the perl script using html form(with embedded javascript inside). When using this html form with javascript alone, it works where the form validation will pop up javascript windows to say the field is not keyed into properly. However, when i convert this html(with javascript inside) into perl script, the perl script...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.