Goto end of page
Moderator: General Moderators
Goto end of page
I have a text box in a form. Everytime when the submit button is pressed, the information entered will be displayed above the text box. After pression on the submit button for ten times, the amount of information on the page gets more. I wonder how can i make in sucha way that when the page is displayed , it goes to the end of the page ??
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
you explained that poorly, and you havent got any code to show us.
so i can only hazard a guess that you are using an action="SAMEPAGE" in the form, and then cheking if $_POST['submit'] is set at the top of the page, and if it is, i guess you are printing/echoing some text.
if i guessed right, then instead of using echo or w/e in the "if (isset($_POST['submit']))" conditional, use something like $message .= "whatever" and build up a message, then where ever on the page you wanna show your message just do
i hope i helped somehow...
so i can only hazard a guess that you are using an action="SAMEPAGE" in the form, and then cheking if $_POST['submit'] is set at the top of the page, and if it is, i guess you are printing/echoing some text.
if i guessed right, then instead of using echo or w/e in the "if (isset($_POST['submit']))" conditional, use something like $message .= "whatever" and build up a message, then where ever on the page you wanna show your message just do
Code: Select all
if (isset($message)) {
echo $message;
}Code: Select all
<body onLoad="document.location = '#form';">
..........
<form id="form" .....
.........Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.