Form action="<?php echo $_SERVER['PHP_SELF']; ?> Display problem

Hi,

Firstly thank you to everyone who has helped previously on this litlle mini project of mine.

I have a form that can be seen at the test location below:

http://test.ds-server1.co.uk

The form is nearly at the bottom of the page. When the form is submitted with blank fields it returns errors which are displayed in red. Unfortunately after submission and the page redisplays the errors can not be seen as they are off the bottom of the page, thus the user would not know that errors have occured and the form has yet to be submitted correctly.

Other than move the form further up the page (which I can not do due to design restrictions) does anyone have any ideas as to how I can get the page to display so that the errors can be seen?

Thanks,

Luv.



Luv2MuffAsked:
Who is Participating?
 
RoonaanCommented:
You can have a anchor:

<a name="subscribeme">Subscriber details:</a>

and then use:

<form action="<?php echo $_SERVER['PHP_SELF'];?>#subscribeme">

-r-
0
 
Luv2MuffAuthor Commented:


EXCELLENT !!!!!!

That works a treat, much appreciated.

Luv.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.