doctorbill
asked on
php
I have attached a fairly simple page which does the following:
Allows a user to select images from a database by ID or by an image selection.
The selected image then appears on the page and details can be added / edited using a form on the lower part5 of the page
When the details have been edited, they are submitted to a database and I have created some sessions whereby variables are passed to the same page in order to keep focus on the the updated image and the page number
It all works well except that I need to add an anchor tag to the end of the GET string after the page has been submitted from the second form. I need to add "#title" after the "submit=submit" text. If I add this manually then the anchor works fine
ie submit=submit#title
Any suggestions greatly appreciated
details-update.php
Allows a user to select images from a database by ID or by an image selection.
The selected image then appears on the page and details can be added / edited using a form on the lower part5 of the page
When the details have been edited, they are submitted to a database and I have created some sessions whereby variables are passed to the same page in order to keep focus on the the updated image and the page number
It all works well except that I need to add an anchor tag to the end of the GET string after the page has been submitted from the second form. I need to add "#title" after the "submit=submit" text. If I add this manually then the anchor works fine
ie submit=submit#title
Any suggestions greatly appreciated
details-update.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are right. I need to try to find an alternative way of submitting the #title to the page
For example, if you have
<form action="mypage.php" .....>
change to:
<form action="mypage.php#title" ...>
Hope it helps.