php general question

Posted on 2011-05-04
Last Modified: 2012-05-11
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.
Question by:Rozamunda
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    do u have existing code can be posted here?
    LVL 13

    Accepted Solution

    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.
    LVL 11

    Expert Comment

    by:Ovid Burke
    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.
    LVL 107

    Expert Comment

    by:Ray Paseur
    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.

    Author Comment

    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

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

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now