can you "nest" suscesivos form action="..."?

0

I am developing a typical user profile page where among other things I have the dilemma of uploading a profile picture. In addition there is data that goes through a "post" action to another php file where it processes the information. Now, it turns out that I found a tool called jcrop and that is with which a photograph is cut out. I would like the user to enter only cropped photos. But behold, that tool jcrop has its own post method that is to say it has its own form ... the question is, if I have this structure:

<form action="actualizar.php" method="post">

    (ACA IRIA TODOS LOS INPUT)

    <form action="crop.php" method="post">
        (ACA IRIAN LOS CAMPOS QUE NECESITO PARA RECORTAR LA IMAGEN)
    </form>


</form>

Can it be done?

    
asked by MNibor 06.06.2017 в 20:33
source

2 answers

0

Hello as they say out there divide and conquer,

first you receive the person's data along with the normal image once you have already captured the data.

second you send the user to a second page where you can edit your image, you put a hidden field or through sessions, you save the id of the person to update the profile image.

greetings

    
answered by 06.06.2017 / 20:46
source
0

The only way it works is for the internal form to be processed separately in background using Ajax for example so that it does not affect the state of the first form.

    
answered by 06.06.2017 в 20:38