Gossamer Forum
Home : Products : DBMan : Customization :

Change Login buttons to Images?

Quote Reply
Change Login buttons to Images?
Hi there,

Is it possible to change login buttons to images? Normally, I can do this:

<INPUT type="IMAGE" name="login" src="/navButtons/login.gif" Border=0>

But that doesn't seem to work. Is there some code that forces the input to be a push button only instead of an image?
Quote Reply
Re: Change Login buttons to Images? In reply to
How doesn't it work? What error messages do you receive?

Saying "it doesn't work" is not very helpful!

Smile

Please be more specific.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Change Login buttons to Images? In reply to
Sorry about that!

eh, it simply returns me to the login screen, instead of the main menu.....
Quote Reply
Re: Change Login buttons to Images? In reply to
Do have the search form outside of DBMAN generated web pages??? If so, you need to add the following hidden codes:

Code:
<input type="hidden" name="db" value="default">
<input type="hidden" name="uid" value="default">

If it is within the sub-routines of the html.pl file, then I don't know what the problem is.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Change Login buttons to Images? In reply to
I could not get it to work either, same error

Greg
Quote Reply
Re: Change Login buttons to Images? In reply to
Try to define in your 'src' the whole pad to the image: "http://www.yourserver.com/pathtoimage.gif"
Maybe that work.
Quote Reply
Re: Change Login buttons to Images? In reply to
No the image is fine. It 's just that when I click on it, it will return me to the login screen instead of the main menu.
Quote Reply
Re: Change Login buttons to Images? In reply to
Some thing with me. The image is just fine, and it shows up and I can click on it. But when I do click on it, it reloads the blank form.

Something is not right here...


Greg
Quote Reply
Re: Change Login buttons to Images? In reply to
Now I see,
You want an image as a 'submit' button.
I saw something in a Javascript-forum.
Try a search here: http://forums.internet.com/...X?13@^10335@.ee6b7ab
Quote Reply
Re: Change Login buttons to Images? In reply to
The post only told us to do exactly the same thing that we had tried.

Thanks, but no hlep...
Quote Reply
Re: Change Login buttons to Images? In reply to
yeah, we did exactly what the javascript-pro's had done but somehow, it should be either didn't work at all, or it works. Somehow the cgi is taking that in but bringing me back to the login screen again.
Quote Reply
Re: Change Login buttons to Images? In reply to
I tried with an image and it worked fine for me.. This is the format I used..

Code:
<INPUT TYPE="IMAGE" SRC="path of image" name="login">

I tried changing the order around... and thats when I kept getting sent back to the login screen...

Hope this works for you Smile


------------------
-----------
millsie :)
Quote Reply
Re: Change Login buttons to Images? In reply to
That does not work for me.... I tried that several time.


dataKing







------------------
Well that depends what the meaning of "is" is...
Quote Reply
Re: Change Login buttons to Images? In reply to
You push an image-button with 'Login' on it, it takes you to the 'login' screen, isn't that the meaning of the login routine??
To go to the 'main' menu, try this:
<A HREF="$db_script_link_url"><img src="path/to/your/image"></a>

Or do I misunderstood..

Good luck,
---------
Mart.
Quote Reply
Re: Change Login buttons to Images? In reply to
I was reading through the posts and saw this - and it doesn't appear that the answer was ever really found.

I worked on it on my own site and here is what works if you are using a login outside of DBMan.

You will need 3 hidden fields as follows:
<input type=hidden name="db" value="default"><input type=hidden name="uid" >
<input type="hidden" name="login" value="Logon">

Along with this call to your graphic button:

<input type="image" name="login" src="path/to/your/graphic/button" value="Logon" border="0">

Also, make sure that your value is "Logon" NOT "Login". Using Login will take you to the default login page within DBMan.

Hope this helps !




------------------
donm
All those who believe in psychokinesis, please raise my hand.




Quote Reply
Re: [donm] Change Login buttons to Images? In reply to
Seems like this was the answer.....thanks very much.