dennisbrittv
Technical User
Hi and thank you for looking at this!
I am trying to display a welcome note if the user is logged in and a login form if they are on a html page.
Now i know that this works:
<form action=" method="post" name="OSScLoginForm" class="search" id="OSScLoginForm" onSubmit="if (document.__ValJsLoaded) { return ValidateLoginEx();}else return true" >
<img src=" width="25" height="29" /></span>
<label>Username</label>
<input name="username" type="text" id="f_username" />
<label>Password</label>
<input name="password" type="password" id="f_password" />
<input name="login" type="submit" id="LoginButton" value="login" title="Login" class="_test" />
</form>
<script src=" <script>
if (__ossIsLoggedIn == 1) {
document.write('hello '+__ossusername +', welcome back!<a href=" ' );
}else{
document.write('Welcome Guest, please Log In Or <a href="}
</script>
But i want this to work:
<script src="<script>
if (__ossIsLoggedIn == 1) {
document.write('hello '+__ossfirstname+','+__osslastname+', your username is '+__ossusername +' !');
}else{
document.forms(<form action=" method="post" name="OSScLoginForm" class="search" id="OSScLoginForm" onSubmit="if (document.__ValJsLoaded) { return ValidateLoginEx();}else return true" >);
document.forms ('<img src=" width="25" height="29" />')
document.forms (<label>Username</label>)
document.forms (<input name="username" type="text" id="f_username" />)
document.forms (<label>Password</label>)
document.forms (<input name="password" type="password" id="f_password" />)
document.forms (<input name="login" type="submit" id="LoginButton" value="login" title="Login" class="_test" />)
document.forms (</form>)
}
</script>
Please help if you can. I want to display this on a html page.
Thank you
I am trying to display a welcome note if the user is logged in and a login form if they are on a html page.
Now i know that this works:
<form action=" method="post" name="OSScLoginForm" class="search" id="OSScLoginForm" onSubmit="if (document.__ValJsLoaded) { return ValidateLoginEx();}else return true" >
<img src=" width="25" height="29" /></span>
<label>Username</label>
<input name="username" type="text" id="f_username" />
<label>Password</label>
<input name="password" type="password" id="f_password" />
<input name="login" type="submit" id="LoginButton" value="login" title="Login" class="_test" />
</form>
<script src=" <script>
if (__ossIsLoggedIn == 1) {
document.write('hello '+__ossusername +', welcome back!<a href=" ' );
}else{
document.write('Welcome Guest, please Log In Or <a href="}
</script>
But i want this to work:
<script src="<script>
if (__ossIsLoggedIn == 1) {
document.write('hello '+__ossfirstname+','+__osslastname+', your username is '+__ossusername +' !');
}else{
document.forms(<form action=" method="post" name="OSScLoginForm" class="search" id="OSScLoginForm" onSubmit="if (document.__ValJsLoaded) { return ValidateLoginEx();}else return true" >);
document.forms ('<img src=" width="25" height="29" />')
document.forms (<label>Username</label>)
document.forms (<input name="username" type="text" id="f_username" />)
document.forms (<label>Password</label>)
document.forms (<input name="password" type="password" id="f_password" />)
document.forms (<input name="login" type="submit" id="LoginButton" value="login" title="Login" class="_test" />)
document.forms (</form>)
}
</script>
Please help if you can. I want to display this on a html page.
Thank you