Re: [PHP] Thank you Rebecca

2001-09-18 Thread Rebecca Donley

Glad to be of help John.  Wish I could think of something a little more 
elegant.  The # seemed like an odd choice to me for a comment line because 
it's a well used character in both html and common text.  I'm surprised it 
hasn't given a lot of people trouble.
Rebecca


>From: John Holcomb <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Thank you Rebecca
>Date: Tue, 18 Sep 2001 17:00:06 -0700 (PDT)
>
>Excellent idea Rebecca.  I guess I'll have to resort
>to this because no one else out there seems to have
>ever had this problem.  You've been a big help.  Thank
>you for your ideas.
>
>John
>
>
>--- Rebecca Donley <[EMAIL PROTECTED]> wrote:
> > What about writing a function to change all the #
> > characters to something
> > else (maybe something you would never see in the
> > input) and then another to
> > change them back again before entry into your db?
> > I'm pretty new to PHP so
> > I'm not sure what string functions are available but
> > in ASP you could just
> > use a "replace" function.
> > Rebecca
> >
> >
> > >From: John Holcomb <[EMAIL PROTECTED]>
> > >To: Rebecca Donley <[EMAIL PROTECTED]>
> > >Subject: Re: [PHP] Is there no one who can help me
> > out there.
> > >Date: Tue, 18 Sep 2001 16:48:29 -0700 (PDT)
> > >
> > >Thank you.  This has been the biggest help so far.
> > >
> > >But, if it's a user entered string is their anyway
> > to
> > >do this without having to parse the string and
> > looking
> > >for the # sign and then reconstructing the string.
> > >That would be very difficult to do.
> > >
> > >I would appreciate any comments you might have.
> > >
> > >Thanks again
> > >
> > >John
> > >
> > >
> > >--- Rebecca Donley <[EMAIL PROTECTED]> wrote:
> > > >
> > > > John,
> > > > I had a similar problem when passing # from one
> > page
> > > > to another as an html
> > > > anchor.  What worked for me was separating the #
> > in
> > > > quotes as follows:
> > > >
> > > > echo "?id=" . $row[0] . "#" .
> > strtolower($row[1]) .
> > > > '">';
> > > >
> > > >
> > > > When I did this I had no problem passing the
> > entire
> > > > string without the end
> > > > being interpreted as a comment.
> > > > Rebecca
> > > >
> > > >
> > > > >From: John Holcomb <[EMAIL PROTECTED]>
> > > > >To: [EMAIL PROTECTED]
> > > > >Subject: [PHP] Is there no one who can help me
> > out
> > > > there.
> > > > >Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT)
> > > > >
> > > > >I have a text input field in my form.  I need
> > the
> > > > user
> > > > >to be able to enter something like:  Hello, I
> > need
> > > > #
> > > > >help. After which they click on a submit
> > button.
> > > > The
> > > > >succeeding page then takes this text and tries
> > to
> > > > >display it and tries to store "Hello, I need #
> > > > help"
> > > > >in a varchar field in a mysql table column.
> > The
> > > > >mysql database is truncating the # sign and the
> > > > text
> > > > >succeeding the # sign.  Also, absolutly no text
> > is
> > > > >being diplayed on the succeeding web page.
> > I've
> > > > tried
> > > > >  using addslashes() and I was warned against
> > using
> > > > >htmlentities().  Also, I'm not sure if I'm
> > dealing
> > > > >with 2 issues: A mysql issue and a html issue.
> > Or,
> > > > am
> > > > >I dealing with one issue: A mysql issue or an
> > HTML
> > > > >issue.
> > > > >
> > > > >I know think my problem is that when I pass
> > text to
> > > > >another page with the # sign, it's interpreting
> > it
> > > > as
> > > > >a comment.  Is their any way to somehow escape
> > the
> > > > #
> > > > >sign.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >   Thank you,
> > > > >
> > > 

Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Rebecca Donley

What about writing a function to change all the # characters to something 
else (maybe something you would never see in the input) and then another to 
change them back again before entry into your db?  I'm pretty new to PHP so 
I'm not sure what string functions are available but in ASP you could just 
use a "replace" function.
Rebecca


>From: John Holcomb <[EMAIL PROTECTED]>
>To: Rebecca Donley <[EMAIL PROTECTED]>
>Subject: Re: [PHP] Is there no one who can help me out there.
>Date: Tue, 18 Sep 2001 16:48:29 -0700 (PDT)
>
>Thank you.  This has been the biggest help so far.
>
>But, if it's a user entered string is their anyway to
>do this without having to parse the string and looking
>for the # sign and then reconstructing the string.
>That would be very difficult to do.
>
>I would appreciate any comments you might have.
>
>Thanks again
>
>John
>
>
>--- Rebecca Donley <[EMAIL PROTECTED]> wrote:
> >
> > John,
> > I had a similar problem when passing # from one page
> > to another as an html
> > anchor.  What worked for me was separating the # in
> > quotes as follows:
> >
> > echo "?id=" . $row[0] . "#" . strtolower($row[1]) .
> > '">';
> >
> >
> > When I did this I had no problem passing the entire
> > string without the end
> > being interpreted as a comment.
> > Rebecca
> >
> >
> > >From: John Holcomb <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: [PHP] Is there no one who can help me out
> > there.
> > >Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT)
> > >
> > >I have a text input field in my form.  I need the
> > user
> > >to be able to enter something like:  Hello, I need
> > #
> > >help. After which they click on a submit button.
> > The
> > >succeeding page then takes this text and tries to
> > >display it and tries to store "Hello, I need #
> > help"
> > >in a varchar field in a mysql table column.   The
> > >mysql database is truncating the # sign and the
> > text
> > >succeeding the # sign.  Also, absolutly no text is
> > >being diplayed on the succeeding web page.  I've
> > tried
> > >  using addslashes() and I was warned against using
> > >htmlentities().  Also, I'm not sure if I'm dealing
> > >with 2 issues: A mysql issue and a html issue. Or,
> > am
> > >I dealing with one issue: A mysql issue or an HTML
> > >issue.
> > >
> > >I know think my problem is that when I pass text to
> > >another page with the # sign, it's interpreting it
> > as
> > >a comment.  Is their any way to somehow escape the
> > #
> > >sign.
> > >
> > >
> > >
> > >
> > >   Thank you,
> > >
> > >John
> > >
> > >__
> > >Terrorist Attacks on U.S. - How can you help?
> > >Donate cash, emergency relief information
> >
> >http://dailynews.yahoo.com/fc/US/Emergency_Information/
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > >
> >
> >
> >
>_
> > Get your FREE download of MSN Explorer at
> > http://explorer.msn.com/intl.asp
> >
>
>
>__
>Terrorist Attacks on U.S. - How can you help?
>Donate cash, emergency relief information
>http://dailynews.yahoo.com/fc/US/Emergency_Information/


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Is there no one who can help me out there.

2001-09-18 Thread Rebecca Donley


John,
I had a similar problem when passing # from one page to another as an html 
anchor.  What worked for me was separating the # in quotes as follows:

echo "?id=" . $row[0] . "#" . strtolower($row[1]) . '">';


When I did this I had no problem passing the entire string without the end 
being interpreted as a comment.
Rebecca


>From: John Holcomb <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] Is there no one who can help me out there.
>Date: Tue, 18 Sep 2001 16:29:21 -0700 (PDT)
>
>I have a text input field in my form.  I need the user
>to be able to enter something like:  Hello, I need #
>help. After which they click on a submit button.   The
>succeeding page then takes this text and tries to
>display it and tries to store "Hello, I need # help"
>in a varchar field in a mysql table column.   The
>mysql database is truncating the # sign and the text
>succeeding the # sign.  Also, absolutly no text is
>being diplayed on the succeeding web page.  I've tried
>  using addslashes() and I was warned against using
>htmlentities().  Also, I'm not sure if I'm dealing
>with 2 issues: A mysql issue and a html issue. Or, am
>I dealing with one issue: A mysql issue or an HTML
>issue.
>
>I know think my problem is that when I pass text to
>another page with the # sign, it's interpreting it as
>a comment.  Is their any way to somehow escape the #
>sign.
>
>
>
>
>   Thank you,
>
>John
>
>__
>Terrorist Attacks on U.S. - How can you help?
>Donate cash, emergency relief information
>http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] html anchors and form variables again

2001-09-18 Thread Rebecca Donley

Hi all,
Several days ago I asked for help with this problem and you gave me 
information on the output control functions, which was much appreciated and 
solved some of my problems.  However, I can't seem to find away around the 
following one:

I need to pass a variable value from one page to the next via a link.  I 
need to pass it through the querystring for several reasons, the first being 
that I need to provide underlined links to click on, not submit buttons.  
The second, though less important, is that I'd like users to be able to 
bookmark the resulting page and later access it directly with the variable 
included.

In addition to passing the variable I need to pass an anchor name, so that 
the resulting page loads to the correct place.  I can't seem to make this 
work correctly.  Either the variable gets lost or the anchor doesn't work in 
IE (depending on where I put the quotes in my referrring page).

Does anyone know how to make this work, or how to pass a variable to a form 
without the querystring and without a submit button?

Thanks so much in advance,
Rebecca

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] html anchors and form variables again

2001-09-17 Thread Rebecca Donley

Hi all,
Several days ago I asked for help with this problem and you gave me 
information on the output control functions, which was much appreciated and 
solved some of my problems.  However, I can't seem to find away around the 
following one:

I need to pass a variable value from one page to the next via a link.  I 
need to pass it through the querystring for several reasons, the first being 
that I need to provide underlined links to click on, not submit buttons.  
The second, though less important, is that I'd like users to be able to 
bookmark the resulting page and later access it directly with the variable 
included.

In addition to passing the variable I need to pass an anchor name, so that 
the resulting page loads to the correct place.  I can't seem to make this 
work correctly.  Either the variable gets lost or the anchor doesn't work in 
IE (depending on where I put the quotes in my referrring page).

Does anyone know how to make this work, or how to pass a variable to a form 
without the querystring and without a submit button?

Thanks so much in advance,
Rebecca

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley


Phillip and David,
The output control functions worked perfectly.  You saved me many hours of 
frustration and wasted time.  Thanks so much!
Rebecca

>From: David Robley <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Rebecca Donley" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: Re: [PHP] Possible to buffer output to make HTML anchors work?
>Date: Fri, 14 Sep 2001 10:20:39 +0930
>
>On Fri, 14 Sep 2001 08:59, Rebecca Donley wrote:
> > Hi all,
> >
> > I am switching from VBScript/ASP to PHP and have run into a problem
> > with HTML anchors.  My page has a list of links generated from a db.
> > The links reference a second page, which displays multiple records from
> > the db to include the referenced one.  I need that page to load to the
> > selected record based on the link from the previous page, with the
> > other records ouputted before and after the selected record.  Since the
> > selected record's location will vary on the page I need to use the html
> >  anchors.  The names of these anchors are also generated
> > from the database.  The second page is loading to the top of the page,
> > regardless of the anchors, which appear correctly in the html source
> > code.  I suspect this is because my include header files are being sent
> > to the browser before the anchors are generated.
> >
> > In ASP I could set the buffer to send the output to the browser all at
> > once, which would solve this problem (I think) but I can find nothing
> > similar in PHP.  Is there anything?  Or is there another way around
> > this problem?
> >
> > Thanks in advance for any help or suggestions.
> > Rebecca
>
>Output control functions may be what you are looking for.
>
>http://www.php.net/manual/en/ref.outcontrol.php
>
>--
>David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
>CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
>
>Even a hawk is an eagle among crows.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Possible to buffer output to make HTML anchors work?

2001-09-13 Thread Rebecca Donley

Hi all,

I am switching from VBScript/ASP to PHP and have run into a problem with 
HTML anchors.  My page has a list of links generated from a db.  The links 
reference a second page, which displays multiple records from the db to 
include the referenced one.  I need that page to load to the selected record 
based on the link from the previous page, with the other records ouputted 
before and after the selected record.  Since the selected record's location 
will vary on the page I need to use the html  anchors.  The 
names of these anchors are also generated from the database.  The second 
page is loading to the top of the page, regardless of the anchors, which 
appear correctly in the html source code.  I suspect this is because my 
include header files are being sent to the browser before the anchors are 
generated.

In ASP I could set the buffer to send the output to the browser all at once, 
which would solve this problem (I think) but I can find nothing similar in 
PHP.  Is there anything?  Or is there another way around this problem?

Thanks in advance for any help or suggestions.
Rebecca

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]