Jump to content

Including different variables


Scropion

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.