Hi all, and apologies if this is a newbie type question, I am one.
I need to get a page to go to a paticular <a name=""> tag. It works fine
with no variables passed eg: myscript.php#to p, but I need to append other
info and just can't work out how to do it.
TIA 5 4467
You could add your variables to the querystring like
script.php#top? myvar=thevar&my var1=thevar2
and then retrieve them on the script.php page using
$myvar = $_GET["thevar"];
$myvar1 = $_GET["thevar2"];
Happy coding :)
Joe
"Pseud O'Nym" <no************ *******@notyaho o.co.uk> wrote in message
news:43******** *************** @ptn-nntp-reader02.plus.n et... Hi all, and apologies if this is a newbie type question, I am one.
I need to get a page to go to a paticular <a name=""> tag. It works fine with no variables passed eg: myscript.php#to p, but I need to append other info and just can't work out how to do it.
TIA
"Joe Molloy" <mo********@hot mail.com> wrote in message
news:VT******** *********@news. indigo.ie...
Thank you, I just looked at $_GET on php.net and now understand. :) OTOH, I
think maybe I'll make a form with a POST method, and hidden inputs for my
vars, in the places I now have hrefs with appended variables. The contents
of the address bar for my, very simple, site is starting to make a Google
look like child's play . You could add your variables to the querystring like
script.php#top? myvar=thevar&my var1=thevar2
and then retrieve them on the script.php page using
$myvar = $_GET["thevar"];
$myvar1 = $_GET["thevar2"];
Happy coding :)
Joe "Pseud O'Nym" <no************ *******@notyaho o.co.uk> wrote in message news:43******** *************** @ptn-nntp-reader02.plus.n et... Hi all, and apologies if this is a newbie type question, I am one.
I need to get a page to go to a paticular <a name=""> tag. It works fine with no variables passed eg: myscript.php#to p, but I need to append
other info and just can't work out how to do it.
TIA
Joe Molloy wrote: Joe "Pseud O'Nym" <no************ *******@notyaho o.co.uk> wrote in message news:43******* *************** *@ptn-nntp-reader02.plus.n et...
Hi all, and apologies if this is a newbie type question, I am one.
I need to get a page to go to a paticular <a name=""> tag. It works fine with no variables passed eg: myscript.php#to p, but I need to append other info and just can't work out how to do it.
TIA You could add your variables to the querystring like
script.php#top ?myvar=thevar&m yvar1=thevar2
and then retrieve them on the script.php page using
$myvar = $_GET["thevar"];
$myvar1 = $_GET["thevar2"];
Happy coding :)
It appears to be a moot point now for the OP (is going to use POST), but
the fragment identifier (#top) should be at the end of the URI string -
after the variables.
script.php?myva r=thevar&myvar1 =thevar2#top
--
*************** **************
Chuck Anderson • Boulder, CO http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*************** **************
"Chuck Anderson" <we************ @seemy.sig> wrote in message
news:Qo******** ************@co mcast.com...
wrote: It appears to be a moot point now for the OP (is going to use POST), but the fragment identifier (#top) should be at the end of the URI string - after the variables.
script.php?myva r=thevar&myvar1 =thevar2#top
I would still like to know how to get this to work, for future reference.
I notice that the server on which the script is run, and which is outside my
control, has register_global s set on. So I don't need to use $_GET to return
appended variables, but could this be why the fragment identifier is being
ignored?
"Pseud O'Nym" <no************ *******@notyaho o.co.uk> wrote in message
news:43******** *************** @ptn-nntp-reader02.plus.n et... "Chuck Anderson" <we************ @seemy.sig> wrote in message news:Qo******** ************@co mcast.com... wrote: It appears to be a moot point now for the OP (is going to use POST), but the fragment identifier (#top) should be at the end of the URI string - after the variables.
script.php?myva r=thevar&myvar1 =thevar2#top
I would still like to know how to get this to work, for future reference.
I notice that the server on which the script is run, and which is outside
my control, has register_global s set on. So I don't need to use $_GET to
return appended variables, but could this be why the fragment identifier is being ignored?
Oops, sorry chaps! It does work as above, I had an if else back to front. :( This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dmiller23462 |
last post by:
Hey guys....
I put an error-handling in my page and have it posted at the complete
end of the code, see below(when people were putting in 's I was
getting the delimiter errors). Great, I understand that now and it
seems to be fixed but the data I'm pulling from the HTML fields is not
being appended correctly do my Access DB....The field in the DB now
reads " ' ". I understand why it does that (my function) but what I
need it to read is...
|
by: ehm |
last post by:
I have encountered an issue that has me totally confused. I have a
page where the user clicks on a hyper-text link and is then directed
towards another page (passing additional variables, etc.). If the
anchor text does not contain the "@" symbol, clicking on the link
works in a normal fashion. However, if the anchor text is something
like "foo@test", then clicking on the text displays the full URL
(still goes to the correct link, but I...
|
by: Daniele Baroncelli |
last post by:
Hi guys,
I would like to change the text in an anchor.
es.
from
<a id="idanchor">oldtext</a>
to
|
by: elsenraat_76 |
last post by:
Hello! I was wondering if someone could help me out with a problem I'm
having? I'm trying to input a javascript value into an anchor tag
(from a function), but don't have an event to call the function...if
that makes sense. Here's what I mean...
I have a javascript array set up like so:
<script language="javascript" TYPE="text/JavaScript">
//custom object constructor
|
by: Richard Brown |
last post by:
Ok, I celebrate and rejoice in the Anchor property. So wonderful compared
to the horrible 'resize' code I had to write in VB6, there is just no end to
the wonders of VB.NET..... uh, ok..... BUT...
I have a form with a lot of controls side by side, etc. The Anchor is
really only useful to resize 1 control on each line (and move all the
others). BUT, does anyone have any articles or other ways to do this?
For example, I am working on...
| |
by: gary |
last post by:
Hi,
I am trying to reference an anchor in a user control with a url. This
worked in 1.1 but no longer works in 2.0.
The ascx control is located in a "/include" folder
If you have a hyperlink control and you assign the navigateurl property =
"../#anchor" whereby you want to add this # reference to the current url the
url ends up with the #anchor twice.
|
by: elibol |
last post by:
Hi,
Is there an event that fires when the back or forward button on a
browser is pressed? I need an event to fire when someone clicks the
back or forward button after an anchor has been set.
Thanks so much for reading about my problem!
H
|
by: Randy Webb |
last post by:
The list below has the current section number, proposed anchor name, and
then the current title of that section. Some make sense, some don't.
There are a few that don't have proposed anchor names yet as I couldn't
come up with a decent anchor name. Some anchor names are duplicated
(#ajax is one), where the idea would be to combine those entries into
one entry.
Any proposed anchor name changes, thoughts, or ideas are welcome.
The major...
|
by: Joseph Gruber |
last post by:
Hi all -- I have two questions.
First, I'm adding a control to my form at runtime and the control/form
seems to ignore the anchor property of the runtime control. Any idea
how I can get a runtime control to anchor properly?
Second -- the program I'm writting is supposed to look like a dos
application (long story). When the application is "Normal" aka a
small window then everything looks great. But when I resize the
window to...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |