[PHP] User accounts

2002-03-07 Thread David Johansen

I'm new to this php thing and I would like to set up a web page were the
users can login and edit their preferences and all that stuff. I have the
basic login stuff worked out and I was passing the username and password as
a hidden input in the form, but then the password can be seen with view
source. I know that there's a better way to do this, so could someone point
me to a good tutorial or example on how I could make it so that the user
could login and logout and then I wouldn't need to be passing the password
all around like this. Thanks,
Dave



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




[PHP] Re: User accounts

2002-03-07 Thread David Johansen

Here's a little piece of code that gives me a weird problem:




I have the session started and everything, but it gives me the following
error.
Warning: Undefined variable: logout in c:\inetpub\wwwroot\uslogin.php on
line 13
I've seen this used on several examples. I know that if I just use
empty($logout) then it'll work ok, but I just wanted to know why it's used
in so many examples but doesn't work in my code. Is there some setting that
I have set wrong or something? Thanks,
Dave

"David Johansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm new to this php thing and I would like to set up a web page were the
> users can login and edit their preferences and all that stuff. I have the
> basic login stuff worked out and I was passing the username and password
as
> a hidden input in the form, but then the password can be seen with view
> source. I know that there's a better way to do this, so could someone
point
> me to a good tutorial or example on how I could make it so that the user
> could login and logout and then I wouldn't need to be passing the password
> all around like this. Thanks,
> Dave
>
>



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




[PHP] Right way to do the MySQL thing

2002-03-08 Thread David Johansen

I was just wondering what the "right way" to do the MySQL connection thing
is. Am I supposed to do it everytime through in the php code, should I make
it a session variable, or is a global variable the way to go? Right now this
is the code that I have

if (empty($_SESSION['db']))
{
   $_SESSION['db'] = mysql_connect("localhost", "root");

   mysql_select_db("clients",$_SESSION['db']);
}

Is that a "good" way to do it or is there a "better" way or anything like
that. Thanks,
Dave



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




[PHP] Re: Can someone tell me about database....

2002-03-09 Thread David Johansen

Here's a good PHP and MySQL tutorial.
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html
Dave

"Genesis Designs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> Can anyone tell me about database driven web sites? I want to learn how to
do
> that. Thanks,
>
>
> -GENESiS DESiGNS
> -Sean Kennedy
> -http://www.gdesigns.vcn.com
>



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




[PHP] Authorize.net example

2002-03-09 Thread David Johansen

Could someone tell me where I could get a basic Authorize.net example to
work off of. I'm sure that I could do it all from scratch, but a base to
start from would be nice and make it a lot faster. Thanks,
Dave



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




[PHP] variable scope

2002-03-12 Thread David Johansen

I have a little chunk of code that checks to see if a variable exists and if
not then it sets it. It goes like this:

if (empty($page))
{
   $page = "login";
}

I then end that part of the php script after doing what I need to. Then I
start up again on the same html page and I assumed that $page had a value
assigned to it because of the above code, but it appears that it doesn't. Is
this supposed to happen or is something weird happening. I added that little
bit of code to the second chunk of code and it fixed the problem. Is that
the "right" way to do it? Is that variable only available in the 
that it's declared in? Thanks,
Dave



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




Re: [PHP] variable scope

2002-03-12 Thread David Johansen

Something most have just been wigging out or something because I can't get
it to do it again. Maybe I just did something wrong, but it seems to be
working now. Thanks for the help though,
Dave

"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
1015973063.2146.82.camel@ali">news:1015973063.2146.82.camel@ali...
> On Tue, 2002-03-12 at 14:38, David Johansen wrote:
> > I have a little chunk of code that checks to see if a variable exists
and if
> > not then it sets it. It goes like this:
> >
> > if (empty($page))
> > {
> >$page = "login";
> > }
> >
> > I then end that part of the php script after doing what I need to. Then
I
> > start up again on the same html page and I assumed that $page had a
value
> > assigned to it because of the above code, but it appears that it
doesn't. Is
> > this supposed to happen or is something weird happening. I added that
little
> > bit of code to the second chunk of code and it fixed the problem. Is
that
> > the "right" way to do it? Is that variable only available in the 
> > that it's declared in? Thanks,
> > Dave
>
> Shouldn't be. A variable is valid from the point it's declared until
> it's unset(), or goes out of scope (the function within which it was
> declared ends), or the script ends.
>
> Can you provide a short script which exhibits this behaviour?
>
>
> --
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
>



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




[PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen

Is there a way that I can use $PHP_SELF in include files, so that the
function will use the URL of the php script that calls the include file?
Thanks,
Dave



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




Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen

I'm doing exactly what you said and here's what it says when I call
$PHP_SELF in the include file:

http://12.254.227.149/Warning:%20%20Undefined%20variable:%20%20PH
P_SELF%20in%20c:/inetpub/wwwroot/pages.inc%20on%20line%2035?page=questions


"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
1015974570.2134.94.camel@ali">news:1015974570.2134.94.camel@ali...
> On Tue, 2002-03-12 at 15:02, David Johansen wrote:
> > Is there a way that I can use $PHP_SELF in include files, so that the
> > function will use the URL of the php script that calls the include file?
> > Thanks,
> > Dave
>
> If a.php includes b.php, and you check $PHP_SELF in b.php, it should
> give you the path to a.php. What result are you getting?
>
>
> --
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
>



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




Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen

Here's the chunk of code in the include file that gave me that. I should
have put it with the original post:


U

Questions
Insert questions here.


Thanks,
Dave
"Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message
1015974570.2134.94.camel@ali">news:1015974570.2134.94.camel@ali...
> On Tue, 2002-03-12 at 15:02, David Johansen wrote:
> > Is there a way that I can use $PHP_SELF in include files, so that the
> > function will use the URL of the php script that calls the include file?
> > Thanks,
> > Dave
>
> If a.php includes b.php, and you check $PHP_SELF in b.php, it should
> give you the path to a.php. What result are you getting?
>
>
> --
>  Torben Wilson <[EMAIL PROTECTED]>
>  http://www.thebuttlesschaps.com
>  http://www.hybrid17.com
>  http://www.inflatableeye.com
>  +1.604.709.0506
>



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




[PHP] Credit Card Processing

2002-03-13 Thread David Johansen

I was just wondering what people thought was the best credit card processing
place. I've been looking at Authorize.net and PayFlow Pro and I was just
wondering if people had any experience with them and had any thoughts on
which one was easiest to work with and which one worked best. Thanks,
Dave



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




[PHP] Online Feedback and Application

2002-03-14 Thread David Johansen

I would like to make a little online feedback and application form. I was
trying to decide if I should use the mailto action of the form or if there's
some better way that I can do it in PHP. Is there a way I could just write
it to a file or something in PHP or is there a more typical and better way
to pull this off? Thanks,
Dave



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




[PHP] Multipage form

2002-03-20 Thread David Johansen

I was just wondering what was the best way to handle a multipage form. Would
the best way be to keep passing the variables through the forms as hidden
values or should I use sessions and store all the values as session
variables? What's the best way to handle all of this? Also the different
forms will all be in the same php file that loops to itself if that makes a
difference. Thanks,
Dave



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




[PHP] Form Value Validation

2002-03-20 Thread David Johansen

I was wondering if there was a way to do validation of the values in forms.
I know that I could just check it all after it's been submitted with a post,
but is there any way to do it as they're entering the data or when they
click the button right before it sends the data? Thanks,
Dave



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




[PHP] echo and Session Variables

2002-03-21 Thread David Johansen

I was just wondering if there's a way to use echo with session variables.
When I try to do this:



it gives me this error:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /home/storings/public_html/uslogin.php on line 134

Am I doing something wrong or is there a better way to do this? I know that
I could use printf() but is there a way to do it with echo and is accessing
the session variables with $_SESSION[] the "right" way to do it? Thanks,
Dave



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




Re: [PHP] echo and Session Variables

2002-03-21 Thread David Johansen

Thanks that fixed the problem, but I have a question then. Am I supposed to
put the ' in the $_SESSION[] in the normal parts of code. Thanks,
Dave

"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, 21 Mar 2002, David Johansen wrote:
> > I was just wondering if there's a way to use echo with session
variables.
> > When I try to do this:
> >
> >  > if (isset($_SESSION['x_Email']))
> > echo "value=\"$_SESSION['x_Email']\"";
> > ?>
>
> The issue is with the syntax you're using to refer to arrays within double
> quotes.
>
>echo "value=\"{$_SESSION[x_Email]}\"";
>
> miguel
>



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




[PHP] Calling a javascript function?

2002-03-21 Thread David Johansen

Is there any way to call a javascript function from inside a php script?
Dave



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




[PHP] Re: Calling a javascript function?

2002-03-21 Thread David Johansen

I would want to do something like this:



I would want to do that. Is there some way of pulling that off? Thanks,
Dave

"Julio Nobrega" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>   Maybe not the way you have imagined, but either you do it outside php
(out
> of ) or you echo it.
>
> --
> Julio Nobrega.
>
> Um dia eu chego lá:
> http://sourceforge.net/projects/toca
>
> Ajudei? Salvei? Que tal um presentinho?
> http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
> "David Johansen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Is there any way to call a javascript function from inside a php script?
> > Dave
> >
> >
>
>



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




[PHP] form values not changing

2002-03-21 Thread David Johansen

Maybe there's something that I just don't get but here's the problem I'm
having. I use this piece of code to initialize the text box in a form:

Address: >

Then I have a little php processing page  that stores this value in a
session variable and it just does it like this:

echo $x_Address;
$_SESSION['x_Address'] = $x_Address;

I added the echo to check and make sure it was working but it doesn't change
the value when I resubmit the form. When I first load up the page it's blank
and when I hit back it fills in all the fields right, but then when I
resubmit the form with new values they're all just the ones from the first
time that I submitted the form. Is there something that I'm doing wrong?
Thanks,
Dave



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




[PHP] I figured out what's causing it, but how do I fix it

2002-03-21 Thread David Johansen

I just figured out that it's that the name of the field in the form is the
same as the Session variable, cause if I change it then it doesn't have this
problem, but how do I go about fixing this? Is the only solution just to
make them named different things? Thanks,
Dave

"David Johansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Maybe there's something that I just don't get but here's the problem I'm
> having. I use this piece of code to initialize the text box in a form:
>
> Address:  (isset($_SESSION['x_Address'])) echo "value=\"$_SESSION[x_Address]\""?>>
>
> Then I have a little php processing page  that stores this value in a
> session variable and it just does it like this:
>
> echo $x_Address;
> $_SESSION['x_Address'] = $x_Address;
>
> I added the echo to check and make sure it was working but it doesn't
change
> the value when I resubmit the form. When I first load up the page it's
blank
> and when I hit back it fills in all the fields right, but then when I
> resubmit the form with new values they're all just the ones from the first
> time that I submitted the form. Is there something that I'm doing wrong?
> Thanks,
> Dave
>
>



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




[PHP] Adding stuff to the end of strings

2002-03-27 Thread David Johansen

I was just wondering if there was a way to add new text to the end of
strings. I tried doing
$message += "Some text here";
but that just set $message to 0. I'm sure it's something simple  but I
couldn't find anything on it in the documentation.
Dave



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




[PHP] Nevermind I figured it out

2002-03-27 Thread David Johansen

I just user $message = $message . "Some text";
But is there a "better" way to do this with something like the += operator?
Dave

"David Johansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I was just wondering if there was a way to add new text to the end of
> strings. I tried doing
> $message += "Some text here";
> but that just set $message to 0. I'm sure it's something simple  but I
> couldn't find anything on it in the documentation.
> Dave
>
>



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




[PHP] A Calendar type thingy

2002-03-29 Thread David Johansen

Ok, I'm still kind of new to this and I just have a question on how I should
go about implementing something. I need to make a calendar type thing with
different times in each day and store some values for each time in a
database. I was just wondering what would be the best way to do this. Here's
what my data type would look like in C:

struct time
{
char name[50];
int avail;
int max;
}

struct day
{
 char date[15];
 time time_values[6];
}

day myDates[14];

So I would have a structure for each day and that structure would hold the
date and 6 times. Each time would have it's name, available spots and
maximum spots. What would be the best way to set this up in PHP and store it
in a mySQL database. Thanks,
Dave



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




[PHP] A quesiton about arrays and indexes

2002-03-29 Thread David Johansen

Ok, I have a question about arrays and indexes. Something weird happens when
I try this:

echo "week[$i][$j]: $week[$i][$k][0]";

Of course $i and $j have their appropriate values. It just prints out
Array[0][4] (0 and 4 being the values of $i and $k, but if I do the code
below it works just fine. Is there something I'm just not getting or
something?

$temp = $week[$i][$k][0];
echo "week[$i][$j]: $temp";

THanks,
Dave



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




[PHP] Any easy way to go from MySQL Dates to PHP dates?

2002-03-30 Thread David Johansen

I was just wondering if there's any way to work with dates returned from a
MySQL query in PHP. Right now I do all of different stuff in my MySQL query
but it's really cumbersome, so I would like to be able to do it all with
PHP. Is there any way to do that? Thanks,
Dave

Here's my MySQL query:

$result = mysql_query("SELECT *, WEEKDAY(time0_name) AS day,
DATE_FORMAT(time0_name,'%m/%d/%y') AS print_date, DATE_FORMAT(time0_name,
'%l:%i %p') AS begin_time0, DATE_FORMAT(DATE_ADD(time0_name, INTERVAL 2
HOUR), '%l:%i %p') AS end_time0, DATE_FORMAT(time1_name, '%l:%i %p') AS
begin_time1, DATE_FORMAT(DATE_ADD(time1_name, INTERVAL 2 HOUR), '%l:%i %p')
AS end_time1, DATE_FORMAT(time2_name, '%l:%i %p') AS begin_time2,
DATE_FORMAT(DATE_ADD(time2_name, INTERVAL 2 HOUR), '%l:%i %p') AS end_time2,
DATE_FORMAT(time3_name, '%l:%i %p') AS begin_time3,
DATE_FORMAT(DATE_ADD(time3_name, INTERVAL 2 HOUR), '%l:%i %p') AS end_time3,
DATE_FORMAT(time4_name, '%l:%i %p') AS begin_time4,
DATE_FORMAT(DATE_ADD(time4_name, INTERVAL 2 HOUR), '%l:%i %p') AS end_time4,
DATE_FORMAT(time5_name, '%l:%i %p') AS begin_time5,
DATE_FORMAT(DATE_ADD(time5_name, INTERVAL 2 HOUR), '%l:%i %p') AS end_time5
FROM pickup_times",$dbh);

I could do it a lot easier if in PHP I think, so I was just wondering if
anyone could point me to a thing that talked about converting MySQL DATETIME
to PHP date stuff.



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




[PHP] For Loop going too long

2002-03-30 Thread David Johansen

I have a question about something weird that I've noticed Here's some code
that I have that loads up

   $sql = "SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) =
$dayofmonth";

   $result = mysql_query($sql, $dbh);
   $day = mysql_fetch_array($result);
   for ($i=0; $i";

When I do this it prints out 2 times the number of columns that I actually
have plus 1. All of the ones past the actual number of columns are just
empty, but is there something that I'm doing wrong? Thanks,
Dave



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




[PHP] Re: BUG in recursion

2002-03-30 Thread David Johansen

No it's right. Because $count will equal 10 and it'll print it out, the test
will fail and then it'll trace the recursion back and print the j's. It
would be a bug if it printed an 11, but it's right the way it is.
Dave

"Uros Gruber" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> This is a code
>
> function Test()
> {
> static $count = 0;
>
> $count++;
> echo $count;
> if ($count < 10) {
> Test ();
> }
> echo "j";
> }
> test();
>
> Output is
>
> 12345678910jj
>
> Why is there 10 j at the and. If this would work it can be
> only one. If $count is grater than 10 it does not call itself
> but end. Is this maybe a bug or what.
>
>
> --
> lp,
>  Uros  mailto:[EMAIL PROTECTED]
>



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




[PHP] Disabling the Back Button?

2002-03-30 Thread David Johansen

OK, I basically just want to make it so that the user can't go back once
they're done with an application form that I'm working on. I don't case if
they go back in the middle and my page handles that just fine, but I want
them to not be able to go back when they're all done. Is there some way that
I can do this? Thanks,
Dave



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




[PHP] Getting rid of Web Page has expired

2002-03-31 Thread David Johansen

I was just wondering what I had to do to get rid of the Web Page has expired
thing when my php page is calling itself and the user hits back. It only
does it on the last page for some reason. Thanks,
Dave



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




[PHP] Authorize.net

2002-04-04 Thread David Johansen

I know that this is way off topic, but I was wondering if someone could help
me. I couldn't think of anywhere else to look for info. So here are my
questions. If someone could help me out or point me in the direction of a
good resource I would be very grateful. But here goes.
I just started setting everything up with Authorize.net. I've set it up to
send all of the information correctly to Authorize.net, but I had some
questions about the relay script that recieves the information. How am I
supposed to handle the times when x_Response_Code doesn't equal 1? How do I
get it so that the input fields reappear? On most sites they pop back up if
an invalid credit card number is entered or any other error, but on mine it
doesn't. Do I have to set up the fields myself or is there something I can
do to make it reput them all back on the page? Also when it's approved and
goes through the user can keep hitting refresh and it charges them multiple
times and sends them an email each time. Is this just because I'm in test
mode or is there something I can do to prevent this? Thanks a ton,
Dave



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




[PHP] PHP Authorize.net interface

2002-04-05 Thread David Johansen

I was wondering if someone just point me to a good example of a PHP
interface for Authorize.net to work with ADC Relay Response. Thanks,
Dave



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




[PHP] Disabling bars on Browser

2002-04-07 Thread David Johansen

I was just wondering if there was any way to turn off the bars at the top of
the browser window with PHP. If not does anyone know a way that I could make
it so that I could pass information from a form to window that I pop open
with javascript. I would either need some way to make the window look just
like a window that was popped up with this:


  window.open('https://secure.authorize.net/gateway/transact.dll',
'joe', config='toolbar=0,menubar=0,directories=0,location=0')
  

or some way I could pass the info from a form to that opened page.
Thanks,
Dave



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




[PHP] Re: Disabling bars on Browser

2002-04-07 Thread David Johansen

I would love to use a class. Where can I find one? I've posted on here
several times asking for examples or base code that work with Authorize.net
but no one ever responds. If you could point me to some that'd be great.
Thanks,
Dave

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Do you have something against using a class for interaction with the
> Authorize.net URL you are trying to open? It is possible to pass vars to
the
> page I'm sure but a class would work better in most cases and automate the
> process for the customer.
>
> Later,
>
> Bob
> "David Johansen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I was just wondering if there was any way to turn off the bars at the
top
> of
> > the browser window with PHP. If not does anyone know a way that I could
> make
> > it so that I could pass information from a form to window that I pop
open
> > with javascript. I would either need some way to make the window look
just
> > like a window that was popped up with this:
> >
> > 
> >   window.open('<A  HREF="https://secure.authorize.net/gateway/transact.dll">https://secure.authorize.net/gateway/transact.dll</A>',
> > 'joe', config='toolbar=0,menubar=0,directories=0,location=0')
> >   
> >
> > or some way I could pass the info from a form to that opened page.
> > Thanks,
> > Dave
> >
> >
>
>



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




[PHP] MySQL connection from non-localhost

2002-04-10 Thread David Johansen

I was just wondering if there was a way to connect to a MySQL server on a
server other than the one that your php script is on. I tried just putting
in the URL of the site in place of localhost but that didn't work. Is there
anything special that I have to do to get it to work? Thanks,
Dave



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