Gossamer Forum
Home : Products : DBMan : Customization :

Entering Data Externally via links

(Page 2 of 2)
> >
Quote Reply
Re: Entering Data Externally via links In reply to
Just in sub html_record_form.

The fields that you can type in should have the values entered from the link. Do they? (Just making sure. Smile)

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Right i have taken out the hidden fields in sub html_record _form and now when the user adds a new form there are no | symbols Yeah!!! Smile But (there always has to be a but unfortunately) nothing was passed in.

Regarding your question about fields that i can type in, when the user gets to the form he can fill in all the fields at the moment but the ones that are passed in from the link appear blank but when you view the form the data has been entered. How do i get it so that the user can't see these fields on the form but they are still passed in?

Elle

Quote Reply
Re: Entering Data Externally via links In reply to
You're gonna hate me!! Smile

Put the hidden fields back in and take out the editable fields.



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Carol, i could never hate you as you've help me so much so far.
Which parts are the editable fields and does commenting them out count as taking them out, just in case i have to put them all back in?

Elle

Quote Reply
Re: Entering Data Externally via links In reply to
You're going to need to delete the lines I quoted in my 1:25 a.m. post. And, unfortunately, you can't just comment them out.

What I would do is save your html.pl file as it is now with another name and put it in a safe place. Then make the changes.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Ok i've done that this time it did the same as last time returned a form with none of the data that was meant to be passed in but at least there were no | symbols!! Was i meant to take out the part in sub html_record that looks similar to the lines that i just removed? I didn't but i wasn't sure whether to or not.

Elle


Quote Reply
Re: Entering Data Externally via links In reply to
Can you email me your html.pl file? I think we still are having some communication problems and the only way I can figure them out is to see the whole file. Send it to hall@drizzle.com.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Thankyou very much for taking the time to look at my html.pl file. You are going to want to kill me but it still doesn't work properly, once the user enters all the remaining data and hits the Add Record button, the form is returned but the Platform, Commodity and Customer fields (i.e. the ones that i am passing in via links) are returned blank.
Sorry
Elle

Quote Reply
Re: Entering Data Externally via links In reply to
Smile Well, let's see if we can't figure out why.

Go to the add form via a link and before you enter any data in the fields, check the source code for the add form page. (Right click on the page and select "View Source" from the menu that comes up.)

Take a look at the code. See if the hidden fields are there and if they are filled in. This will give me some idea of where to look for the problem.



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Nope they're not filled in they just appear as
<input type=hidden name="Platform" value="">

Elle


Quote Reply
Re: Entering Data Externally via links In reply to
Well, that tells us that we have a problem getting the values to the form.

The place you were before this is the login form, right? Check to make sure those values are filled in when you look at the source code.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Yeah they're filled in on the login screen.

Elle

Quote Reply
Re: Entering Data Externally via links In reply to
What's happening between the login screen and the add form? (I know. That's what *you* want to know. Smile)

Set $db_debug=1 in your .cfg file. Try it again and, when you get to the add form, see if your fields are listed in the debugging information at the bottom of the page.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
I think I figured it out.

Add

$in{'add_form'}=1;

to the beginning of sub html_add_form.

(I really feel like a clone!!!)

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Entering Data Externally via links In reply to
Cool It worked!!!
Well Done thankyou very much for all your help
If you're ever in Scotland and need a tour guide feel free to ask me Smile

Thanks again
Elle

Quote Reply
Re: Entering Data Externally via links In reply to
Oh, I would love to go to Scotland! Smile I will definitely take you up on your offer if I do make it.

I'm glad it finally worked. I just wish I would have figured it out about 10 posts back! Blush

JPD
http://www.jpdeni.com/dbman/
> >