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.
5 3135
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.
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.
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.
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.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |