473,503 Members | 7,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

relative linking in php

54 New Member
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 13 '08 #1
1 929
Markus
6,050 Recognized Expert Expert
Hmmm

I'm going to go ahead and say the only way you could probably do this is by using a header redirect and sticking your #link to the end of it:
[php]
header("Location: page.php#link1");
[/php]
Mar 13 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1602
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
19748
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
2215
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
6523
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
1651
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: ...
0
2540
by: Philip Lowman | last post by:
I am in the process of trying to migrate a couple of build solutions to Visual Studio Express 2005 from VS 2003 Professional and I am running into a weird C/C++ runtime library linking issue when...
1
1612
by: Sudhakar | 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
1344
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
7194
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
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7316
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
6976
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
7449
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
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
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
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.