Scropion Posted March 28, 2009 Share Posted March 28, 2009 I have the following code for my profile section and it changes every time the user ID is changed, but I want to include a javascript page that allows me to change it everytime a user ID is changed. <script language="javascript"> function showProfile(profile) { if (profile == 1) { document.getElementById('profileTab').innerHTML = "Username: Scropion"; } if (profile < 1 || profile > 4) { document.getElementById('profileTab').innerHTML = "Either the page you requested doesn't exist or can be only viewable by clicking the links above"; } } </script> Link to comment https://forums.phpfreaks.com/topic/151554-including-different-variables/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.