Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20698

Re: How to put a variable ino php script..?

Message-ID <2254679.j3ESebKCLd@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-07-18 20:08 +0200
Subject Re: How to put a variable ino php script..?
Newsgroups comp.lang.javascript
References <ks596h$44u$1@ls237.t-com.hr>

Show all headers | View raw


Robert Bralic wrote:

> I have something like this:
> <a href="update.php"><?php echo $r; ?></a>
> and I want to know how to pass a $r to update.php
> when user clicks on link..?

The simple and off-topic answer is:

<a href="update.php?<?php echo htmlspecialchars($r); ?>"
   ><?php echo $r; ?></a>

If that is not what you are looking for, be more precise.  (What is “$r”?)

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to put a variable ino php script..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2013-07-17 07:13 +0200
  Re: How to put a variable ino php script..? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-07-17 09:25 +0200
    Re: How to put a variable ino php script..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2013-07-17 09:35 +0200
      Re: How to put a variable ino php script..? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-07-17 10:08 +0200
        Re: How to put a variable ino php script..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2013-07-17 10:26 +0200
          Re: How to put a variable ino php script..? Carlos Pedro <carlospedr@gmail.com> - 2013-07-17 03:13 -0700
          Re: How to put a variable ino php script..? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-07-17 12:21 +0200
            Re: How to put a variable ino php script..? "Robert Bralic" <robert.bralic@si.t-com.hr> - 2013-07-17 12:32 +0200
              Re: How to put a variable ino php script..? Christoph Michael Becker <cmbecker69@arcor.de> - 2013-07-17 13:28 +0200
  Re: How to put a variable ino php script..? Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-17 23:16 +0000
  Re: How to put a variable ino php script..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-18 20:08 +0200

csiph-web