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
sou
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 PROTEC
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['d
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 le
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.
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 h
46.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))
> > {
>
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
IL 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
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
>
>
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
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 w
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
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
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 ther
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 2
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
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
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;
$_SES
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 Jo
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.
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 wonderin
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
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.
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:
$r
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 i
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:[E
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 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.n
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 settin
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
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
cess 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 brow
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
--
34 matches
Mail list logo