Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Problem with previous button when using a form PHP #43

@youch12

Description

@youch12

I know that this question has been asked quite many times, but for some reason I couldn't find a clear answer, one that works sufficiently. I'm currently working on a project using mainly php (a newbie here), one of features of the site is allowing the user to comment on some articles. The problem is, I'm using the post method in these forms, once the user clicks add comment for example, another input is shown, if he decides to fill it out and click submit, the data is then transmitted to a page where I insert the new content in the DB, and bring him back to the original page, so he can repeat the process if he feels like it. However if the user decides to click the previous button, an error occures telling the user that the page requested doesn't exist anymore. I'm really lost here guys, I've tried many solutions, like putting the data in session but it doesn't seem to be working. I appreciate all the help I can get.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions