Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of gplana
gplana
Flag of Spain image

On the URL of the form tag (action property) just add the anchor.

For example, if you have

<form action="mypage.php" .....>

change to:

<form action="mypage.php#title" ...>

Hope it helps.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of doctorbill

ASKER

You are right. I need to try to find an alternative way of submitting the #title to the page