• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

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.
0
Rozamunda
Asked:
Rozamunda
1 Solution
 
Loganathan NatarajanLAMP DeveloperCommented:
do u have existing code can be posted here?
0
 
stergiumCommented:
i agree that would be a good start to comment/add on your code by having some part of it .
does your form being validated with javascript  before submittion? you can monitor for the filename with jquery and after being filled do whatever you want to do.
0
 
Ovid BurkeCreative DirectorCommented:
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.
0
 
Ray PaseurCommented:
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.
0
 
RozamundaAuthor Commented:
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 ?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now