Hi Rich! if you app=end fields that do not exist in a form, something like &firstname=3D[ur=l][firstname][/url] then =E2=80=9C[firstname]=E2=80=9D (with the brackets) =will be added to the database. WebDNA is just expecting the field content, =and since this one does not exist, then the code [firstname] that should be= replaced by the field content will appear instead. This is normal behaviou=r.
- chris
On Jun 20, 2014, at 1=5:58, Rich Kwas <
richkwasniewski@yahoo.com=> wrote:
> Hi Donocan.
>
> Let me explain it again..........=....
>
> A somewhat simple form =on a website where ad payment information is entered......
> CC payments are handled manually, so just info is gathered.....
>
> Here is the beginning of the app=end to the database snippet:
> [append db=3D^/membersh=ip/advertising.db]uniqueID=3D
[cart]&submit_date=3D
[date]&submit_tim=e=3D
[time]&submit_ip=3D
[ipaddress]&firstname=3D
[url][firstname][/ur=l]&lastname=3D
[url][lastname][/url]&ad_name=3D
[url]ad_name[/url][/a=ppend]
>
> firstname & lastname will "not" be used anymore on= the form, but they are being left in advertising.hdr since they may come t=o life again sometime in the future....
>
> When form info is submitted and appended to advertising.db the =2 unused fields (no longer in the form) are having their field names writte=n into the database.
>
> [firstn=ame] (the field name with the brackets)
> [lastname] (=the field name with the brackets)
> ad_name informatio=n is being written just fine
>
>=
>
> I'm guessing I should just= not have these old field names in the append part?
>&=nbsp; (I should have thought of that earlier..)
>
>
> BUT
> why =would the field names get written if they are nowhere on the form but still appear in the append par=t and are still in advertising.hdr
>
>
>
>
&=gt; On Thursday, June 19, 2014 10:29 AM, Donovan Brooke <
dbroo=ke@euca.us> wrote:
>
>
>
> On Jun 19, 2014, at 8:00 AM, =Rich Kwas <richkwasniewski@yahoo.com&g=t; wrote:
>
> > Added some ne=w fields to an existing database.
> > on the websit=e information is being entered into a payment form.
> =>
> > Some of the existing field names will not= be used anymore in an upcoming update.
> > These unused fields will no longer app=ear on the form.
> > BUT these old fields unused fi=eld names are being written into the database.
> > =
> > example:
> > [type_of_=ad]
> > [travel]
> > [city_=based_in]
> >
> > Why woul=d this be happening?
>
>
> Undefined variables output as raw text.
=>
>
>
>=; > I'm pretty sure I have unused fields in other sites but never had th=is happen until this project.
> >
> > Narrowed down all other possibilities causing this and its just= the unused fields being written this way.
> >
> > These unused fields are still being "appended" to the existing db, even though t=hey don't appear on the form anymore and there is no actual data to append.=
> >
> > Should these fie=ld names be written into the database if the field doesn't appear on the fo=rm BUT that field name is still in the append code?
> =>
> >
> > Here is how =two of the unused fields are being appended:
> > fi=rstname
> > lastname
> > > > [append db=3D^/membership/advertising.db]uniqueI=D=3D[cart]&submit_date=3D[date]&submit_time=3D[time]&submit_ip==3D[ipaddress]&firstname=3D[url][firstname][/url]&lastname=3D[url][=lastname][/url][/append]
> >
>=; > firstname & lastname do not appear on this form anywhere.
>
>
>
> Rich, =maybe restate your question clearer. I=E2=80=99m confused :-)
>
> Sincerely,
> Donovan=
>
>
> ---=------------------------------------------------------
&g=t; This message is sent to you because you are subscribed to
> the mailing list <talk@webdna.us>.
> To unsubscribe, E-mail to: <talk-leave@web=dna.us>
> archives: http://mail.web=dna.us/list/talk@webdna.us
> Bug Reporting: support@webdna.us
=>
> ----------------------------------------------=----------- This message is sent to you because you are subscribed to the m=ailing list . To unsubscribe, E-mail to: archives: http://mai=l.webdna.us/list/talk@webdna.us Bug Reporting: support@we=bdna.us