PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 29th, 2004, 04:05 PM
dallas_h dallas_h is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 dallas_h User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HELP: problem with php, onclick function, and frames

I'm having a problem with the following bit of code and it has to do with the variable/argument in the function, however, I'm unfamiliar with how to "make it pass" correctly.
The problem is that the $id value is not set when used in the onclick function. If I call the variable (both before and after this code) outside of the onclick function, the variable displays without any problems. However, it's not getting assigned a value when it is used in the onclick function. I know the code is working otherwise because if I put a value such as "300" in place of "$id", the argument is passed to the empty.php page correctly.

I've broken up the code for easier reading/debugging and nothing more... Thanks for any help that may be provided, Dallas.

echo "<input type=\"submit\" value=\"Save\" name=\"save\"";
if (!isset($previous))
{
echo "onClick='parent.bottom_frame.location.href=\"empty.php\?id\=";
echo "$id";
echo "\"'";
}
echo ">";

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > HELP: problem with php, onclick function, and frames


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway