Avatar of doctorbill
doctorbill
Flag 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
PHP

Avatar of undefined
Last Comment
doctorbill

8/22/2022 - Mon
gplana

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
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
doctorbill

ASKER
You are right. I need to try to find an alternative way of submitting the #title to the page
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck