Link to home
Start Free TrialLog in
Avatar of Rozamunda
Rozamunda

asked on

php general question

Hi I have a form where a user can select different search criteria for a database.
Upon submission it shows the results in a table.
Now I want add a new functionality to allow excel upload. I will probaby use a jquery plugin
for a file loader. Once i got the file name i want to process it and show the results
on the screen just like with a normal search.

My question how can I force the main form in php program to be resubmitted (to start processing
and display data process). For the upload I would have just a button.

Of course I don't need to upload this file to the server.
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

do u have existing code can be posted here?
ASKER CERTIFIED SOLUTION
Avatar of stergium
stergium
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What data will you excel files hold? data in the same structure as your database or search parameters?

I am just trying to understand how the file upload is relevant to how you search form works?

I also agree that it would be useful to view your code.
Regarding this, Of course I don't need to upload this file to the server.  I think you do, in fact, need to upload the file if you intend for PHP to be aware of it.
Avatar of Rozamunda
Rozamunda

ASKER

Hi, I don't have the code yet, because at this point I am thinking how to code it

All I have is  the Upload button.

sterquim: I think that your solution makes sense, I will get the file name with a jquery upload plugin and
upon form validation check for the file name (so I really don't need to upload the file, just pass
its name to excel reading class). But I would like to reduce  mouse clicks for the users, so the
best would be submit my form with upload button,So I think I can do it inside jquery, by calling
form.submit()

Ray: do you still think I need to upload the excel file to the server ?