[PHP] Strings and default values...

2002-12-20 Thread Steven Kallstrom
Dear List,
 
This is a simple problem, but I can't really find a good
solution. and I have a general question also.
 
1)   I have a webform that is save to a variable $html using
heredoc.
 
$html = <<< WEBFORM
.

.
 
the problem is that when you enter an apostrophe, and then repost the
page with the stored values, the apostrophe appears escaped in the edit
form.
how can I solve this?
 
2)   is it possible to put additional ('nested') php inside a
heredoc, or will that text simply print out?
 
Thank you,
 
Steven Kallstrom



[PHP] Defaults in drop down list...

2003-01-06 Thread Steven Kallstrom
I have a drop down list with all fifty states. very common.  I conjured
up a way to store the value when you return to edit the form, but there
most be an easier way either in html, or in php.  Here is what I
currently have.
 

Alabama
Alaska
Arizona
.

 
$stateselected['$state'] is an array that stores the state that was
selected on the prior form.  is there an easier way, to have a default
state picked out of this drop down list.???
 
Thanks,
 
Steven Kallstrom



[PHP] SSL...

2003-01-22 Thread Steven Kallstrom
Hey,

I'm a newbie looking to secure my site with SSL using PHP.
Currently I am taking orders via e-mail online.  The users fill out a
form and that form is sent to me via e-mail.  The email resides on the
same server though.  Would I need to implement SSL for this.  Also, I
could use some pointers to some good SSL tutorials, or any information
that would be helpful in getting me started learning how this is all
done.  My server runs Apache, and has shared SSL.  Thanks,

Steven 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Serach Engines...

2003-02-09 Thread Steven Kallstrom
Hello,

How do search engines react to PHP pages?  If every page of a
site has a .php extension will search engines not react well to that?
If it does, is there a possible way to handle tracking sessions with
php, without being punished by the search engines?

Steve



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dynamic Dropdowns

2003-02-21 Thread Steven Kallstrom
Hey PHP lovers,

I am creating dynamic drop down lists... I would like to have an
option appear in the drop down list, but have it greyed-out and not be
selectable...  I know you can disable selects, but I don't think you can
disable individual options in selects...  anyone have any ideas?

Thanks a ton,

Steven

 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Curl alternative?

2003-07-29 Thread Steven Kallstrom
Dear List,
 
I am currently working on a UPS Web Service Interface and
was wondering if you thought that I could accomplish such a thing
without the Curl libraries. since unfortunately the server that I am
using did not compile Curl with PHP.  what do you think.  is this
something that is possible.?  Or should I just stick with perl or java.
any suggestions.  thanks, I appreciate any help in advance.
 
Steven Kallstrom


[PHP] PHP - MySQL Query...

2003-08-14 Thread Steven Kallstrom
Hello all...

I'm embarrassed by this one...  I think it should work but it isn't...

$dbh = mysql_connect("localhost", "login", "password") or
   die('cannot connect to the database because: ' . mysql_error());
mysql_select_db("database");
  
$query = 'SELECT * FROM cities';
$result = mysql_query($query);
  
while ($row = mysql_fetch_row($result)) {
   echo (' ' . $row[0] . ', ' . $row[1] . '
   ' . $row[2] . ' ' . $row[3] . " \n"); }

getting this error:

*Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL 
result resource in...

so... is the problem with the $query?
I don't see anything wrong (assuming my login and database selection is 
correct)
what are the common errors here?

Thanks,

SJK
**


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP and Visual Studio.Net

2003-03-30 Thread Steven Kallstrom
Ulrik,

For PHP editing in Visual Studio .NET...

http://www.quake-au.net/php/php_and_vsdotnet.htm

SJK



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session IDs and links...

2003-05-27 Thread Steven Kallstrom
Hello,

I have finally figured out sessions a little bit better...  but
I have a question...  is there a way to pass the Session ID on to the
next page via a simple link without placing the session ID in the URL...
if there were a form the session ID is automatically placed as a hidden
input inside the form... but if there is no form, it can only be sent
via the URL in the  tag...  is there a way to send via a simple link
it without placing it in the URL (and without using cookies)...

I was thinking maybe sending an HTTP header or something.  There is no
way to submit form information without a submit button or enter being
pressed is there?

Thanks,

SJK



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] greater than question

2003-05-27 Thread Steven Kallstrom
Steve,

Your best bet is to probably stick those values into an array...  then
you can sort it and operate on the largest values...

SJK

> I have 4
> variables that each have a number in them.  I need to find which one
has
> the highest number.  I then just need to do something with that
number.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sessions and domains

2003-05-28 Thread Steven Kallstrom
Bk,

You would have to somehow pass all session variables onto the
new host since session variables are stored server-side.  You would have
to have a function that took all session variables and passed them to
the new domain including session id...  then you would need a function
that would take those variables and make them session variables in the
new domain...

SJK

> -Original Message-
> From: bk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 5:35 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sessions and domains
> 
> Hi
> 
> I've to set up a shared shopping cart to buy items
> from four different sites and pay them at once
> passing trough a single checkout.
> 
> 
> Provided that these sites are hosted on the same
> server (actually in the same directory), but have
> different names, is it possible to share php
> sessions across multiple domains? How?
> 
> 
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Detecting Bots...

2003-06-09 Thread Steven Kallstrom
Dear List,

So $_SERVER['HTTP_REFERER'] gives us the User Agent...  is there anyway
to determine if in general the User-Agent is a bot, or do I have to
check for a specific bot...  I want to strip out all GET information
from the URL so that bots can crawl my site session free...

Thanks,

SJK



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php