Gossamer Forum
Home : Products : DBMan : Customization :

Problem with Submit buttons

Quote Reply
Problem with Submit buttons
Ok, I wanted to replace the submit buttons with image buttons. So in html.pl (userfriendly version) i replaced the code with "<INPUT TYPE="IMAGE" name="login" src="http://questserver.hypermart.net/secure/cgi-bin/db/contact/login.gif" width="97 height="22">"

but now when i try and login all they seem to do is reload the page. You can see this at http://questserver.hypermart.net/secure/cgi-bin/db/contact/db.cgi

Thanks

Sice

Quote Reply
Re: Problem with Submit buttons In reply to
You need to include a hidden field for the name depending on what form you are using. You'll need to go through each of the subroutines in html.pl that includes a submit button and add the appropriate "name" tag.
The value should be "1" on all of them. (Could really be anything so long as it's not 0 or empty.)
For example:
<input type=hidden name="add_records" value=1>
<input type=hidden name="view_records" value=1>

More information may be available in the FAQ noted below.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
I have been able to create working submit buttons for "add_record" and "modify_record". I am having problems with the "Logon" buttons. What do I use as the name?

Thanks,
VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
<input type=hidden name="login" value=1>

I think you'll just have to eliminate the "Cancel" button, though.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
JPDeni,

I put the line you gave me in the records portion of the html.pl and edited the logon section but no luck. Is it possible to use buttons for logon?

VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
Can you post your sub html_login_form?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
I tried to post the html_login but it is not showing up on the post preview. I am assuming I need to apply some kind of tag. Can you tell me what that is.

VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
Hmmm. I always use

Code:
...

(without the spaces in there) so that the formatting stays the same. But I've never had any problem copying and pasting text into the forum.

If you can't get it to show up, copy your html.pl script to a web-accessible directory and rename it so it has a .txt extension -- html_pl.txt. Then let me know where it is and I'll take a look.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
I created a page all for you!
Hopfully you can find something.

http://www.sonic.net/~marty

Thanks,
VaLinda


Quote Reply
Re: Problem with Submit buttons In reply to
Cute page!! Smile

After

<input type=hidden name="uid" value="$db_uid">

add

<input type=hidden name="login" value=1>

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
JPDeni,

That worked just fine!Smile
Thanks for the help.

VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
JPDeni,

After testing things out further I found that I still have a problem. The solution you gave me resolves the problem of getting past the login screen but when I try to use the modify button it says the password is incorrect. Any suggestions.

VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
Where is the modify button?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
The button is in the html_Modify_form_record section.
Also, I did edit the footnote link to bypass the search option.
Code:
<A HREF="$db_script_link_url&modify_form=1&$db_key=*">
VaLinda


Quote Reply
Re: Problem with Submit buttons In reply to
I'm sorry. I thought we were still dealing with the other subroutine. Smile

What exactly is the error message you receive?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
I'm sorry, I have multiple problems all going at once! You were helping me get a fancy logon button working. The solution of adding the hidden input line in the login subroutine worked for the logon problem but as I continued with the modify option it kicked me back to a "wrong password" error message when I tried to submit my edits. I took out the hidden input line from the login subroutine but I still got an error. Not until I took out the hidden input line from the records section did the modify work but then the login didn't. The fancy buttons are not critical to the site, they just look better. If you have any ideas or understand this post at all, let me know.

Thanks,
VaLinda

Quote Reply
Re: Problem with Submit buttons In reply to
There is no "wrong password" message in DBMan. There are several other messages that might be coming up, each with its own reason. I need to know the *exact* wording of the error message so that I can help you.

Based on the sketchy info you've given me, it seems that you may have added

<input type=hidden name="login" value=1>

to some form other than the login form. That should only go on the login form (or the login failure form). Each of the subroutines has its own command that is sent through the "Submit" button. You need to add that command to your hidden field in each form. Each one will be different.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Problem with Submit buttons In reply to
Actually you solved my problem. I was adding the hidden input line in both the login form and record form. I tried it again leaving the line out of the record form and things are working fine.

Thanks again,
VaLinda