473,480 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

relative linking in php


i am using a self submitting for using php
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST"
id="test2" name="registrationform">

the registration page starts with a lot of terms and other details
about the registration and then the form fields for the

user to fill the registration page. i have used php to validate the
form, presently when a user clicks the submit button and

if there are any validateions that need to be displayed to the user,
then the user has to scroll from the top of the page all

the way till they see the form elements with the validation message
ex= Please enter your phone number.

my question is, as in html with relative linking ex
<a href="#link1"click here</a>

<a name="link1"</a>
Text here

the page can be moved to an exact location, can this be done more or
less close to this relative linking using php so that

the user need not scroll from the top of the page to see the
validation message.

NOTE = since i am using a self submitting form just before the first
form element i have created a blank table row and in

this table row the php validation message would appear if the user
missed out some information. due to this the user has to

scroll from the top of the page to see the php generated validation
message. if i use the same php validation at the very top

of the page the error message will be at the top and the form fields
at the bottom and the user will have to scroll up and

down to read the validation message.

please advice.

thanks.
Mar 12 '08 #1
1 1610
On Mar 12, 7:54 pm, Sudhakar <sudhakarar...@gmail.comwrote:
i am using a self submitting for using php
<form action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST"
id="test2" name="registrationform">

the registration page starts with a lot of terms and other details
about the registration and then the form fields for the

user to fill the registration page. i have used php to validate the
form, presently when a user clicks the submit button and

if there are any validateions that need to be displayed to the user,
then the user has to scroll from the top of the page all

the way till they see the form elements with the validation message
ex= Please enter your phone number.

my question is, as in html with relative linking ex
<a href="#link1"click here</a>

<a name="link1"</a>
Text here

the page can be moved to an exact location, can this be done more or
less close to this relative linking using php so that

the user need not scroll from the top of the page to see the
validation message.

NOTE = since i am using a self submitting form just before the first
form element i have created a blank table row and in

this table row the php validation message would appear if the user
missed out some information. due to this the user has to

scroll from the top of the page to see the php generated validation
message. if i use the same php validation at the very top

of the page the error message will be at the top and the form fields
at the bottom and the user will have to scroll up and

down to read the validation message.

please advice.

thanks.
Just include the anchor in the URL that the form is posting to:

<form action="<?php echo $_SERVER["PHP_SELF"]; ?>#topOfForm"
method="POST" id="test2" name="registrationform">
Mar 13 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1601
by: moxie | last post by:
I am using perl v5.6.1 which I have compiled on a Solaris 8/sparc server using gcc v3.2.2. Building and installing perl was fairly straight forward, save for some noise related to having to...
3
19741
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
0
2210
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
6
6517
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
0
1648
by: Rudy Ray Moore | last post by:
I've been having trouble getting incremental linking to work under Visual C++ .net 2003 7.1 for my multi-project workspace. Ronald Laeremans and Carl Daniel (and a few others) helped me figure it...
3
2332
by: laredotornado | last post by:
Hello, Is there any notation that would allow me to write a reference to an HTTPS page without specifying the entire url? For example, right now I have <a href="order_form.html">Order...
2
2028
by: bobdydd | last post by:
Hi Everybody Access 2000, Windows XP I have an Access Database on a stand alone Machine with a Frontend/Backend: I send it to users with an install routine that installs like this: ...
1
927
by: runway27 | last post by:
i am using a self submitting for using php <form action="<?php echo $_SERVER; ?>" method="POST" id="test2" name="registrationform"> the registration page starts with a lot of terms and other...
3
1341
by: Chris Torek | last post by:
In article <03632bd4-6b6b-4104-8b95-74787f8a750c@u69g2000hse.googlegroups.com> kooladi <adi.aquarian@gmail.comwrote: Yes, on systems A, B, and C; no, on systems D, E, and F. The answer...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6929
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.