Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
integrating javascript and php onclick function
Old 07-21-2004, 04:00 PM integrating javascript and php onclick function
Experienced Talker

Posts: 34
Trades: 0
I need help integrating javascript into a php file.
I am trying to use onclick function to have to user go to another page once they select a radio button

code below


<html>
<head>
<script language="JavaScript">
</script>
</head>
<body>


<?php

$connection = @mysql_connect("localhost", "administrator", "bulls23")or die(mysql_error());

$result= @mysql_list_dbs($connection) or die(mysql_error());

echo "<b>select a Database</b><br \>";
while($row = mysql_fetch_array($result)) {
// echo "<input type='radio' name='dbnames' value='$row[Database]'>$row[Database] <br>";
echo '<input type="radio" name="dbnames" value="' . $row[Database] . '" onclick="window.location=info.htm?db=' . $row[Database] . '">' . $row[Database] . '<br>';
}

mysql_close($connection);

?>
</body>
</html>
cedtech23 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-24-2004, 06:21 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
You havent explained your problem clearly. I get that you want to merge them, and you already have. You should have no problems with the code. Just save it as normal i would suspect.


mik
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to integrating javascript and php onclick function
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.53416 seconds with 12 queries