[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

[PHP] Re: User accounts

2002-03-07 Thread David Johansen
\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

[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'])) {

[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

[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:

[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

Re: [PHP] variable scope

2002-03-12 Thread David Johansen
>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 do

[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
] 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

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen
02-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.p

[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] 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

[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

[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

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

[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
you have imagined, but either you do it outside php (out of ?php ?) 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 P

[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: input type=text name=x_Address size=20 ?php if (isset($_SESSION['x_Address'])) echo value=\$_SESSION[x_Address]\? Then I have a little 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

[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

[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

[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

[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 tdweek[$i][$j]: $week[$i][$k][0]/td; 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

[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:

[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; $isizeof($day); $i++)

[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

[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

[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:

[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

[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

[PHP] Re: Disabling bars on Browser

2002-04-07 Thread David Johansen
>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

[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 --