473,788 Members | 2,743 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hyperlink Properties

Sorry, a real simple question and maybe one not for this group.

Have just tried a php pagination tutorial which works fine. The line
that produces the "Previous" hyperlink is as below and this works
fine. But...

echo "<a href=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_pa ge) . ">Previous Page</a>";

When I try to change the hyperlink properties in the html code to
effect the font style, size and colour as below...

echo "<a href=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_pa ge) . " style="font-family: Arial; font-size: 10pt;
color: #0000FF">Previo us Page</a>";

I get the following error message.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

I have looked at the normal format of a hyperlink and cannot see what
is wrong...

Anyone???

Alec
Dec 5 '07 #1
1 1517
On Wed, 05 Dec 2007 06:33:16 +0100, <sa***@freeweek ends.co.ukwrote :
Sorry, a real simple question and maybe one not for this group.

Have just tried a php pagination tutorial which works fine. The line
that produces the "Previous" hyperlink is as below and this works
fine. But...

echo "<a href=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_pa ge) . ">Previous Page</a>";

When I try to change the hyperlink properties in the html code to
effect the font style, size and colour as below...

echo "<a href=" . $_SERVER['PHP_SELF'] . "?start=" . ($start-
$records_per_pa ge) . " style="font-family: Arial; font-size: 10pt;
color: #0000FF">Previo us Page</a>";

I get the following error message.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

I have looked at the normal format of a hyperlink and cannot see what
is wrong...
Get an editor with descent syntax-highlighting, you'd spot it immediately..

echo '<a href="'. $_SERVER['PHP_SELF'] . '?start=' . ($start-
$records_per_pa ge) . '" style="font-family: Arial;font-size: 10pt;color:
#0000FF">Previo us Page</a>';
--
Rik Wasmus
Dec 5 '07 #2

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

Similar topics

4
4868
by: clintonG | last post by:
Any folklore regarding the benefits of using one or the other of these controls? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.com URL http://metromilwaukee.com/ URL http://clintongallagher.metromilwaukee.com/
5
2075
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the option to save the file. This is the desired result. However, when I put the hyperlink on a webform, the file is opened and it's binary contents are displayed on the screen. Does anyone know why this happens? The hyperlink is as follows:
1
2648
by: tshad | last post by:
Is there some reason why the Hyperlink in a DataGrid will not show an image? I have a datagrid with the following: <asp:TemplateColumn visible="false" HeaderText="Skills"> <itemtemplate> <asp:HyperLink id="SkillsTestDate" imageURL="../images/checkmark.gif" visible="false" Text='<%# Container.DataItem("SkillsTestDate")%>' NavigateUrl='<%# "displayAppResumeEE2.aspx?JobID" & Container.DataItem("JobID") %>'
0
1955
by: Tim::.. | last post by:
Can someone please tell me how I create a hyperlink column in a datatable... I have the following Sub that creates a datatable from my Active Directory but I would like to be able to turn the email column into a link so it automatically opens an email! I realise I have to create a mailto: link but am not sure how you create a link column programatically in a datatable in ASP.NET Thanks
1
2772
by: Saxman | last post by:
I have a textbox on a form which has hyperlink as the data type. The default format for a hyperlink is a file or web link. Is it possible change the default to an email address for all records without the need to select hyperlink/edit hyperlink/select email address for every record? TIA
9
28050
by: dana lees | last post by:
Hello, I am using asp:HyperLink in a c# asp.net application to open a new window in the following way: <asp:HyperLink ID="lnkSiteName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "site.aspx?id=" + DataBinder.Eval (Container.DataItem,"id").ToString()%>' Target="_blank"> </asp:HyperLink>
2
2437
by: Andy | last post by:
Hi, This is one of those things I thought should e easy... I'm programatically trying to set the navigateURL property in a hyperlink in the headertemplate of a repeater, but always get the following error "Object reference not set to an instance of an object." when referencing the hypermink in the following line.. hypAuthors.NavigateUrl = "http://www.microsoft.com"
3
3128
by: William LaMartin | last post by:
I have a gridview (with no properties set) on an aspx page which I populate from an XML file with the code below. The data in the XML file looks like this <description>National Trust for Historic Preservation</description> <URL>http://www.nthp.org/</URL> <category>Architecture</category> Can anyone tell me why the other two columns are displayed, but the
3
2960
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the HyperLink control. My image is large, so I am setting the width/height attributes, but when it renders the width/height attributes are in the <atag rather than the <imgtag, therefore not making the image the size I want. I can obviously place an Image control inside the HyperLink, but the HyperLink was obviously intended to render both. Is there a way around this without using multiple controls?...
5
4283
by: Silgd1 | last post by:
Hey All.... I am creating web page using Netbeans 6.0. I use A jspf (java server page fragment) that is included in most of the other pages. There are several hyperlinks on the jspf that navigate to other pages. I want to install the ability to onMouseOver the hyperlinks on the jspf to produce submenus that will navigate to other pages. I know that in Netbeans I can go to the properties of the hyperlinks and fill in the javascript in the...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10113
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
agi2029
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...
0
6750
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();...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
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 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...

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.