Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created some HTML tables by PHP. every row in first table is link to another heading in the page .



I created some HTML tables by PHP. every row in first table is link to another heading in page . like this.

TablesNames

calName|others field

heading1| X
heading2| X
heading3| X
heading4
| X

heading1

*

*

*
heading2

*

*

*
heading 3

*

*

*
When I copy tables to word document links not work.In another word not go to headings How can I change herf attribute in a tag to work in Word.it's not important links work in html page or not?

note: i know can fix it by edit hyperlink ms-Word option.
Posted
Updated 5-Nov-13 23:00pm
v5
Comments
ZurdoDev 5-Nov-13 21:29pm    
After you edit it to fix it what does the html look like?
ali majed 6-Nov-13 5:11am    
thanks for fast replay.
I improved question text.
I want just link to heading word in ms-Word.
in work links are like this "http://localhost/X/Y.php#heading1"
and not work. how change href in html to work in ms_word.inother word go to Heading in ms-Word.
note: word know "h1" html tage as "Heading1" ms-word heading.
ZurdoDev 6-Nov-13 7:22am    
If you can see what it should look like in Word then you can recreate it that way.
ali majed 6-Nov-13 18:46pm    
I tray it before links are like this
a href="#_heading1" heading 1

and I set as it but problem is header of link means "http://localhost/X/Y.php"

I want know, how change html link tag to ms-Word not add this header?
ZurdoDev 6-Nov-13 20:00pm    
I don't understand what you are saying. If you want it to work in Word, look at how Word does it and then make your code do it that way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900