Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » how to use onclick in php


how to use onclick in php

Reply
  #1 (permalink)  
Old 05-31-06, 06:58 AM
coolcoder coolcoder is offline
Newbie Coder
 
Join Date: May 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
how to use onclick in php

hi

i am in need of this.
i have a php pgm.
when i click a data in a row of a table,it shld point to particular lines (data) in the same page .
for this i need to know how to use onclick fucntion in php.
all r php variables.
using onclick function i need to echo the content in php.

if i use php function in onclick it deosnt work
if i use script fucntion it works
but all my variables r in php.
tell how to use this onclick & php variable & php functions.
pls help me.


pls help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-31-06, 07:40 AM
Rayden Rayden is offline
Newbie Coder
 
Join Date: May 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
This is more like bookmark and only html issues...

ok...the line you want to go should be like this:

<a name="bookmark1">Title 1</a>

and the link directed to that line should be like this:

<a href="#bookmark1">Goto title 1</a>
hope that will help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-31-06, 01:40 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
PHP doesn't not have an onclick function, PHP is a server side programming language. Your questions has nothing to do with PHP, Moved to HTML/XHTML.
__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
FYI: Shout goes out over PHP security bugs nugensoftware PHP 0 11-02-05 12:43 AM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 09:26 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-25-05 12:09 AM
PHP / Graphic Developers someotherguy582 Job Offers & Assistance 1 06-05-05 08:40 PM


All times are GMT -5. The time now is 03:32 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.