Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2017243.GSzyx3rZ4e@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Mon, 16 Sep 2013 15:41:26 +0200 User-Agent: KNode/4.10.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Supersedes: <17466523.evIHLM3xrv@PointedEars.de> MIME-Version: 1.0 Lines: 40 NNTP-Posting-Date: 16 Sep 2013 15:41:26 CEST NNTP-Posting-Host: 272feb14.newsspool4.arcor-online.net X-Trace: DXC=[Om4M>GO?`TPU8j_I0DN6_4IUK On 2013-09-16 08:25, Avnesh Shakya wrote: >> > echo ""; >> ?> >> >> it is going on that page but not contaid this value... > > echo "... $bgid ..." will try to interpolate the PHP variable "$bgid" > into the string. Depending on your settings and whether $bgid actually > exists, this will result in an error or something you didn't want. > JavaScript variables and function arguments are not usually prefixed > with a "$" sign. Try this instead (without the around it): > > I am afraid that this code is not going to work until someone with a minimum clue will be rewriting it. For example, | echo "
  • "; is not going to work already because “$this” will be expanded to "" while generating the notice “Undefined variable: this”. It must be “this” instead, and the “onclick“ attribute value must be quoted; but to know that you have to have at least a basic understanding of HTML, and you have to know the difference between server-side and client-side code, and between PHP (used here server-side) and ECMAScript/JavaScript (used here client- side). PointedEars -- When all you know is jQuery, every problem looks $(olvable).