[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

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.



0
Luv2Muff
Asked:
Luv2Muff
1 Solution
 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now