Gossamer Forum
Home : Products : DBMan : Customization :

HEY JPDeni, i have a problem with the script to automatically jump to the add form!!

Quote Reply
HEY JPDeni, i have a problem with the script to automatically jump to the add form!!
For some reason i have found that since i changed the db_key to the userid in order to find out if the added their listing, no one is able to modify their listing since the key changed. If i leave the key as userid, everything works except you are unable to modify records. If i have the as it was before, on the person's name, you can modify but it sends everyone to the form to add their listing. Please assist me

------------------
Jonathan
jwilliam@umfort.cs.ecsu.edu
Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
I didn't realize you were trying to modify a working database.

The only way for the "automatic jump" to work is for the userid to be the key. Did you even have the Userid in the database when you started?

The only thing I can think of for you to do is to either start over with a blank database, or manually enter the Userids for each record.


------------------
JPD





Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
yesh the userid was in there from the beginning. hmmm

------------------
Jonathan
jwilliam@umfort.cs.ecsu.edu
Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
Then it shouldn't matter, so long as you didn't change where the field is in your database definition.

If you want me to look at your files, you'll need to copy your html.pl, default.cfg and default.db files to a web-accessible directory and rename them to html_pl.txt, default_cfg.txt and default_db.txt. Then let me know where I can see them and I'll try to figure out what your problem is.

Another thing you might try is creating a second database. Just copy the default.cfg and html.pl files and rename them and upload a blank (differently named) .db file. See what happens then.


------------------
JPD





Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
Ok the files are set up now in the directory

http://akapa.hypermart.net/scripts

You can view them all there.

------------------
Jonathan
jwilliam@umfort.cs.ecsu.edu
Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
I got a 404 error when I tried to access the directory.


------------------
JPD





Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
i'm sorry

that was script with no s


http://akapa.hypermart.net/script

------------------
Jonathan
jwilliam@umfort.cs.ecsu.edu
Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
You don't seem to have a Userid field in your sub html_record_form.


------------------
JPD





Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
well how do i get it to automatically store the user id by using their login information. I had the userid field set up for # 15

------------------
Jonathan
jwilliam@umfort.cs.ecsu.edu
Quote Reply
Re: HEY JPDeni, i have a problem with the script to automatically jump to the add form!! In reply to
Add a field for the userid to your sub html_record. It can be a hidden field, but you have to have a field in the form or no one will be able to modify their records.

The script will add the login id automatically when a record is added, as long as you have $auth_user_field set correctly, which you do.


------------------
JPD