From: Antti Boman <antti.boman@mindcom.fi>
To: Patrick Shirkey <pshirkey@boosthardware.com>
Cc: ALSA Development <alsa-devel@lists.sourceforge.net>
Subject: Re: new alsa docs.
Date: Fri, 09 Aug 2002 09:25:49 +0300 [thread overview]
Message-ID: <3D53606D.3020201@mindcom.fi> (raw)
In-Reply-To: 3D52949C.6030706@boosthardware.com
Sorry if I didn't understand your problem, but here goes.
Patrick Shirkey wrote:
> Does anybody know how to get all the text from a text area to post when
> it includes " and ' marks?
>
> I am using stripslashes($var) to pass the variable between pages with
> success but when I do the final post if I use "" around the VALUE in the
> input line the text gets cut off at the first " or if I use '' the text
> gets cut off at the first '.
>
> eg.
>
> <INPUT NAME='note' TYPE='hidden' VALUE="<?echo
> stripslashes($note); ?>">
>
> or
>
> <INPUT NAME='note' TYPE='hidden' VALUE='<?echo
> stripslashes($note); ?>'>
Those look the same to me, so I assume you meant the other one with
citation marks.
Anyway, you should use htmlspecialchars() to turn the special characters
interfering html markup (' # & < >) to html entities. So:
<INPUT NAME="note" TYPE="hidden" VALUE="<?echo
htmlspecialchars(stripslashes($note)); ?>">
> $MailToAddress = "pshirkey@boosthardware.com";
> $MailSubject = "ALSA: doc notes additions";
> if (!$YourAddress) {
> $YourAddress = "Null";
> }
Hmmm... you're testing $Youraddress for integer, was that the intention?
If $Youraddress doesn't contain a number in the beginning of the string,
it fails and $Youradddress turns to "Null".
I also assumed you're using PHP.
Tell me more if I got it completely wrong ;)
-a
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
next prev parent reply other threads:[~2002-08-09 6:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0208061855490.23759-100000@yme.mo.himolde.no>
2002-08-08 15:56 ` new alsa docs Patrick Shirkey
2002-08-09 6:25 ` Antti Boman [this message]
2002-08-09 6:52 ` Patrick Shirkey
2002-08-09 7:31 ` Patrick Shirkey
2002-08-10 18:51 ` Frans Ketelaars
2002-08-09 15:27 ` Patrick Shirkey
2002-08-13 14:40 ` Clemens Ladisch
2002-08-13 15:01 ` Patrick Shirkey
2002-08-14 16:01 ` Pedro Lopez-Cabanillas
2002-08-15 8:56 ` Patrick Shirkey
2002-08-15 14:22 ` Pedro Lopez-Cabanillas
2002-08-15 10:19 ` Patrick Shirkey
2002-08-14 16:40 ` Clemens Ladisch
2002-08-15 9:03 ` Patrick Shirkey
2002-08-15 12:25 ` Clemens Ladisch
2002-08-15 12:42 ` Patrick Shirkey
[not found] ` <3D536705.9040705@mindcom.fi>
[not found] ` <3D536C72.10302@boosthardware.com>
[not found] ` <3D536DE5.20601@mindcom.fi>
[not found] ` <3D537354.2030900@boosthardware.com>
[not found] ` <3D537337.4080802@mindcom.fi>
[not found] ` <3D537C3C.9000105@boosthardware.com>
[not found] ` <3D5B6FE2.1040603@mindcom.fi>
[not found] ` <3D5B7BA7.7040502@boosthardware.com>
[not found] ` <3D5B7FC5.2030404@mindcom.fi>
[not found] ` <3D60EDB4.7080600@boosthardware.com>
[not found] ` <3D60EE47.7050704@mindcom.fi>
[not found] ` <3D60FA94.4010001@boosthardware.com>
[not found] ` <3D610A82.6080709@mindcom.fi>
[not found] ` <3D629F9B.8070301@mindcom.fi>
2002-08-21 4:43 ` alsa docs - PHP help Patrick Shirkey
2002-08-05 15:51 new alsa docs Patrick Shirkey
2002-08-05 20:01 ` Dan Hollis
2002-08-06 9:13 ` Patrick Shirkey
2002-08-06 12:48 ` Joerg Mayer
2002-08-06 3:25 ` Andy Wingo
2002-08-06 9:25 ` Patrick Shirkey
2002-08-06 9:47 ` James Tappin
2002-08-06 11:12 ` Patrick Shirkey
2002-08-07 12:32 ` Takashi Iwai
2002-08-09 19:50 ` Karsten Wiese
2002-08-06 16:24 ` Andy Wingo
2002-08-07 12:27 ` Takashi Iwai
2002-08-07 17:11 ` Niklas Werner
2002-08-08 23:49 ` Scott MacKenzie
2002-08-09 7:19 ` Patrick Shirkey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D53606D.3020201@mindcom.fi \
--to=antti.boman@mindcom.fi \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pshirkey@boosthardware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.