-2

我有一个页面(Uploader.php)的输出。现在我转到其他页面并在该页面上有一个按钮以重新路由到该页面(Uploader.php)。我希望看到页面的输入,而不是重新处理页面。

4

1 回答 1

0

From what I can infer of the question you want to have a form that allows the user to upload whatever information. After they submit, you want to either show a 'review' page (for the user to confirm or deny the action to be performed), or a 'results' page to review what was performed/uploaded/input.

For easy of programming I would have two PHP files, Uploader.php and Uploader-View.php Uploader.php would have your form and post to whatever form action script you have for processing it. The action script could then redirect to Uploader-View.php with the form values placed in the page as text, rather than as form fields. If you wanted to re-use Uploader.php you could have some variable to determine the state of the workflow and decide whether to show form fields or variable values.

于 2010-04-22T18:12:59.343 回答