On Mon, Oct 27, 2003 at 03:00:32AM -0200, Joao Andrade wrote:
:
: Hey people,
:
: Something odd is happening :) I've this form on a page:
:
: form method=post action=\basics\quotation-add
Backslashes are allowed?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
This is a browser thing. So far as I know all browsers pretty much freeze
while a save dialog box is open. In some case things still happen. They just
aren't noticable until you close the dialog box.
On Monday 27 October 2003 00:33, Stephen Cronan wrote:
Hi All,
I've written a digital asset
A most amusing project has just come my way. I have a client who wishes to start an
online matchmaking/dating service, one not unlike Match.com or Yahoo! Personals.
There is a rather unique twist to this service, one that I cannot publicly discuss,
but in general terms it is no different than
This should be reported at least as a documentation bug (if it's not
already mentioned, I'm lazy to search :)
Gerard Samuel wrote:
Yes I know about turning off error reporting, but what happens after that
point.
An example.
-- common.php --
?php
// php.ini error reporting is set to E_ALL
Thanks to everyone who has responded. I have a lot of useful suggestions,
and a warm feeling about this newsgroup ;-). I hope I can be of help to
everyone in the future.
cheers
ian
Ian Williams [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Apologies to anyone also subscribed to
Hi Php-general,
How exactly do I install the IMAP Package?
I have the default RedHat IMAP installed. Will installing this break
that? Or is it possible to specify those controls in the make
process? If so what path is it I need?
Thanks for any help
Michael
--
Best regards,
Hi,
I have a need for a very simple financial accounting package which is webbased.
Is there any such thing around?
Thanks
Nico
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I wanted some sort of IDE for PHP, so decided to use Zend (which i believe
quite popular).
I installed it on my redhat linux 8.0- both client and server components.
Instructions was smooth and gave me success msg, but now I do not know how
to open the IDE...
so stupid question.. but still want
On Monday, October 27, 2003, at 07:54 PM, [EMAIL PROTECTED]
wrote:
Hi,
I have a need for a very simple financial accounting package which is
webbased.
Is there any such thing around?
Would anyone use one? I certainly wouldn't -- for security, speed,
usability and about 300 other reasons :)
Can anyone share about how to use php://input instead of
$HTTP_RAW_POST_DATA ?
__
Mau ringtones yang gaya ? -- http://www.ponselgaya.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hey guys,
I was checking over one of my sites the other day trying to weed out the elusive
notices that E_ALL turned up and I got some notices that I'm not too sure how to
handle.
I know how to handle most of these errors however the ones that are snagging me up are
the Notice: Undefined
Hi all,
I know this can be done somehow but I am not sure. I have a form being submitted to a
php file and I wanted a textfield to be converted to formatted html. At the moment
none of the line breaks are being submitted and inverted commas have slashes. I know
the slashes can be removed
Hello,
I would like to draw text in a rectangle on an image.
The text must take all the place in the rectangle.
The trouble is that with imagestring(), there are only 5 fonts (1, 2, 3,
4, 5) and the bigger (5) is still too smaller for my rectangle.
Is there another way to change the size of the
=
This message is for the benefit of new subscribers and those new to PHP.
Those who do not want to be bothered just filter out the [Newbie Guide]
mails. Please feel free to add more points and send to the list.
(I'm re-submitting this 'cos I sent it in html- woops!)
Hi all,
I know this can be done somehow but I am not sure. I have
a form being
submitted to a php file and I wanted a textfield to be
converted to formatted html.
At the moment none of the line breaks are being submitted
and inverted
Hello,
I generate an image with GD in the file generate_image.php
?php
// generate_image.php
require('config.php')
require('functions.php');
require('secure.php');
header('Content-Type: image/png');
$im = imagecreate(15, 15);
// generation of the image
// ...
imagepng($im);
imagedestroy($im);
?
Ian,
PLEASE search the archives before asking the list -- this question is
asked every couple of days, which is quite frustrating.
See http://au.php,net/nl2br
Justin French
On Monday, October 27, 2003, at 09:15 PM, Ian Gray wrote:
Hi all,
I know this can be done somehow but I am not sure.
I am not sure what I have to do in order to control sessions in PHP
4.33 when globals are set to off.
I used to use the following function to check if the user was of admin
status;
function check_admin_user()
// see if somebody is logged in as admin and notify them if not
{
global $admin_user;
Hi PHP,
I am trying to re-install my PHP system after rebuilding with IMAP
controls built, and now I am getting the following error:
line 1: re2c: command not found
this is on php-4.3.3/ext/standard/var_unserializer.c
I am using the following ./configure
./configure
(Windows 2k, Apache, PHP, MySQL, Large Computer with Raid Array and Big
Drives!!!)
(Appology if this is been asked before, but I couldnt see it)
Hello,
First of all I had better say I don't think I am doing anything illegal. I
have over a thousand origional CD's, and would basically like not
I use the function imageTTFtext allows you to specify a string with a font
and a font point size.
Hope that helps.
Chris
-Original Message-
From: Cranky [mailto:[EMAIL PROTECTED]
Sent: 27 October 2003 10:16
To: [EMAIL PROTECTED]
Subject: [PHP] Change text size with GD
Hello,
I would
I am tring to output 3 different random numbers between 1
and 20 into 3 different strings. Using Rand() for each
string isn't sufficient as I may get the same number
repeated for one of the other strings- eg 1,1,3 or 5,3,3 .
It's important that I get three different numbers outputted
into for
function check_admin_user()
{
//global $admin_user;
// if ( (session_is_registered(admin_user)) (isset($admin_user)) )
if ( isset($_SESSION['admin_user']) )
return true;
else
return false;
}
Steve Jackson wrote:
I am not sure what I have to do in order to control sessions in PHP
[snip]
I am not sure if this is the right list to post to as most of you guys
are
probably run php as an Apache module. However, I am currently using my
own xml data format for a non-web based application and I would like to
be
able to embed php within it. Is there a C/C++ library that I can
Steve Vernon wrote:
[ snipped ]
So what I have done is made a MySQL database with all the Artist, Genre,
CD's and Tracks (including mixes). I have typed in all the information into
this, and checked it as much as possible.
What I would like is to put the music track in a blob field, rather than
Nathan Taylor wrote:
Hey guys,
I was checking over one of my sites the other day trying to weed out the elusive notices that E_ALL turned up and I got some notices that I'm not too sure how to handle.
I know how to handle most of these errors however the ones that are snagging me up are the
I am having problems sorting stuff into an array. It doesn't seem to work
quite how everything I read says it should. It is probably my understanding
of it but either way I don't really know whats going on.
I am trying to put everything out of a table into an array so I can call up
the individual
Thanks for your reply.
With this function is it possible to specify the size of the text with
width and height and not only with an integer ?
Because the size of the rectangle on which I want to draw the text is
various (I receive the size of the rectangle by parameter).
And other thing, I try
dont need php - mysql to do this. there is a mp3 streaming sever built for
winamp. look for shoutcast. it'll everything you need, with little leg work
from you.
Burhan Khalid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Steve Vernon wrote:
[ snipped ]
So what I have done is
Will he get one?
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenterhcName=swen
A funny thing was happeng with a GET variable here, after testing it
with an if clause, it would be set to 1, like this, after that:
if ( $_POST['nova'] =! )
$_POST['nova'] = 1... Is that alright?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Without going too deep into your code, I think I see (parts of) your
problem.
In a nearly similar case, I used this code to deal with the problem.
// This example is putting the data from a table into a 2-dimentional
array:
// When using mysql_data_seek() you have all the selections from
[snip]
A funny thing was happeng with a GET variable here, after testing it
with an if clause, it would be set to 1, like this, after that:
if ( $_POST['nova'] =! )
$_POST['nova'] = 1... Is that alright?
[/snip]
GET (see your question) or POSTnot that it matters.
* Thus wrote Cosmin ([EMAIL PROTECTED]):
On Sun, 2003-10-26 at 15:30, Raditha Dissanayake wrote:
are you getting any 1xx status codes from the web server?
here are the full headers:
Transfer-Encoding: chunked
This is probably the problem. If you inspect your data, you'll
notice that it
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]):
This should be reported at least as a documentation bug (if it's not
already mentioned, I'm lazy to search :)
I dunno, this seems like a php bug to me. The @ should only effect
the reporting status of the current line, not disabling certain
* Thus wrote DvDmanDT ([EMAIL PROTECTED]):
Will he get one?
I doubt it.
Curt
--
My PHP key is worn out
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have a need for a very simple financial accounting package
which is webbased.
Although its not written in PHP, www.sql-ledger.org is a nice one.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2003-10-27 at 09:19, Dan Joseph wrote:
Hi,
I have a need for a very simple financial accounting package
which is webbased.
Although its not written in PHP, www.sql-ledger.org is a nice one.
Ditto that...
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Terence Parker ([EMAIL PROTECTED]):
How can I transfer the results above into an array such that I only need
to check $group_result-group_id against
$usergroup[$group_result-group_id] ? -- I know that won't work
syntactically, it's an example only.
Or is there a better way
--- Joao Andrade [EMAIL PROTECTED] wrote:
form method=post action=\basics\quotation-add
Windowsitis? Mind your slashes.
Also, you should quote HTML attributes (though this isn't your problem). So,
try this:
form action=/basics/quotation-add method=post
tdinput type=text size=30
--- Joao Andrade [EMAIL PROTECTED] wrote:
if ( $_POST['nova'] =! )
Equal not? Perhaps you mean not equal? :-)
Chris
=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
--
PHP General Mailing
On Monday 27 October 2003 09:08 am, Curt Zirzow wrote:
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]):
This should be reported at least as a documentation bug (if it's not
already mentioned, I'm lazy to search :)
I dunno, this seems like a php bug to me. The @ should only effect
the
Newbie question - please excuse. I'm using Dreamweaver to generate most of
my PhP. I have created a search page and am trying to generate the results
page. The search form is using the GET function and the form field name is
manufacturer. The following code is generated by DW in the results
Before you add a number to a string make sure that the number is not in
any of the other ones if they exist.
Use a do-while loop on it...
$one = rand( 1,20 );
do {
$two = rand( 1, 20 );
}while( $two == $one );
do {
$three = rand( 1, 20 );
}while( ($three == $one) ($three == $two) );
echo
* Thus wrote Tom Wollaston ([EMAIL PROTECTED]):
I am having problems sorting stuff into an array. It doesn't seem to work
quite how everything I read says it should. It is probably my understanding
of it but either way I don't really know whats going on.
Did you not read my response to your
[snip]
if (isset(manufacturer)) {
$vManufacturer_rs_RobesonResultsList = (get_magic_quotes_gpc()) ?
manufacturer : addslashes(manufacturer);
}
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
/home/s/k/user992816/html/RobesonWeb/TMP4np9nf7zp.php on line 4
[/snip]
Looks like
On Mon, 27 Oct 2003 13:00:19 -, you wrote:
$n is created /outside/ the function.
$n = 1;
So you can't use it here. It's not in scope.
$array[$n][$colname] = $value;
But when I run this script, it looses the first row and doesn't really
That's because you get the first row here.
The line should be
$vManufacturer_rs_RobesonResultsList = (get_magic_quotes_gpc()) ?
$manufacturer : addslashes($manufacturer);
Robb Kerr wrote:
Newbie question - please excuse. I'm using Dreamweaver to generate most of
my PhP. I have created a search page and am trying to generate the results
That was it! Thanx for the help. This board has proven invaluable to me.
Robb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
About a year ago, I installed RH 9.0 and in the process
installed/updated php 4.2.2. The directory, /etc/php.d/ contains many
ini files instructing php to load modules including mysql.so and
interbase.so. phpinfo() shows that they have been included.
Not being a Linux guru - in fact, knowing
* Thus wrote Robb Kerr ([EMAIL PROTECTED]):
I'm always getting an error when testing the page. The error is...
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
/home/s/k/user992816/html/RobesonWeb/TMP4np9nf7zp.php on line 4
The line to which it refers is the line stating,
Sorry for top-posting, gotta configure my mail client better later.
Small error here:
}while( ($three == $one) ($three == $two) );
Change to:
}while( ($three == $one) || ($three == $two) );
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]
Sent: den 27 oktober 2003 15:56
Dont you mean || at the last loop? You loop as long as 3 is equal to both 1
and 2, || would cause it to loop while it's equal to any of them..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##
Please, if you are using windows, you may be infected by
I supose you need to install php-mysql, php-interbase ...
Todd Cary wrote:
About a year ago, I installed RH 9.0 and in the process
installed/updated php 4.2.2. The directory, /etc/php.d/ contains many
ini files instructing php to load modules including mysql.so and
interbase.so. phpinfo()
Hi all,
I use suse8.2 professional
I have upgraded php 4.3.1 to 4.3.3 with rpm suse project.
In the php.ini I have set the registr_globals=3D Off and Ih th directory
/srv/www/html/mysites1 I have created the file .htaccess with:
php_flag register_globals on for only this site.
With the
[snip]
With the function phpinfo I have see that the Master Value is Off and
the=
Load Value is On but the site don't running successfully.
With suse8.1 with php4.2.2 I have nothing problem.
Any idea ?
[/snip]
Does the site rely on files outside of that directory? Do you 'allow
overrides' for
--- [EMAIL PROTECTED] wrote:
In the php.ini I have set the registr_globals=3D Off
I'm assuming that 3D was put in there by some faulty mail client? Also, make
sure you spell it register_globals.
php_flag register_globals on for only this site.
With the function phpinfo I have see that the
This may be a dumb question but here goes. I have been trying to use $_POST
globals in sql queries.
If I use the following query string it does not work
$query=Select * from users where userid='$_POST['userid']';
However, this works
$userid=$_POST[userid]
$query=Select * from users where
--- Luis Lebron [EMAIL PROTECTED] wrote:
$query=Select * from users where userid='$_POST['userid']';
Use curly braces:
$query = select * from users where userid = '{$_POST['userid']}';
Hope that helps.
Chris
=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
--- [EMAIL PROTECTED] wrote:
The problem concern:
The correct site is: www.gardafun.com with apache.1.3.27 and
php-4.0.6 with register_globals = On
The new webserver is 213.21.138.119 with suse8.2 apache1.3.27 and
php-4.3.3 with register_globals=off in the php.ini and in the
.htaccess
$query=Select * from users where userid='.$_POST['userid'].';
;-)
pete
Luis Lebron wrote:
This may be a dumb question but here goes. I have been trying to use $_POST
globals in sql queries.
If I use the following query string it does not work
$query=Select * from users where
Just to give you something to chew on, try the code below.
?php
$myResultsArray = array();
$numberOfRandNumbersToGet = 3;
$randomNumberRange= 20;
while(count($myResultsArray) $numberOfRandNumbersToGet)
{
do {
$rand = rand(1, $randomNumberRange);
erythros and Burhan,
Thanks for the reply.
Basically I started putting my music into a program , and the program I did
it on didn't like the amount of tracks (kept crashing), and didn't give me
as many options as I would like. I'm not worried about a fancy interface and
graphical displays of the
[snip]
...some stuff...
[/snip]
Have you looked at Ampache? http://www.ampache.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Luis Lebron wrote:
snip
If I use the following query string it does not work
$query=Select * from users where userid='$_POST['userid']';
snip
Use curly braces to eval array elements inside of a string
$query = SELECT * FROM users WHERE userid='{$_POST['userid']}';
--
By-Tor.com
It's all
[snip]
Your message has been received, but it hasn't been delivered to me
yet. As I don't have any record of you sending me mail from this
address before, I need to verify that you're not a spammer. Please
reply and alter the Subject line to remove the word REMOVETHISWORD,
and your previous
Jay Blanchard wrote:
[snip]
Your message has been received, but it hasn't been delivered to me
yet. As I don't have any record of you sending me mail from this
address before, I need to verify that you're not a spammer. Please
reply and alter the Subject line to remove the word REMOVETHISWORD,
Hi Timo,
Nachricht vom Freitag, 24. Oktober 2003, 17:58:39:
I am trying to get my pages through the w3c-validator for html.
It doesn't like my
FORM action=mypage.php?para1=val1para2=val2
Changing to amp; got my page through the validator, but broke
my app, which seems not to be
Please include the list in all of your replies. I skim message subjects and
don't read all messages. If you reply only to me, there's a good chance it will
not be read, and no one else will have a chance to answer your question.
--- [EMAIL PROTECTED] wrote:
As i know, if register_globals is
olinux mailto:[EMAIL PROTECTED]
on Friday, October 24, 2003 9:41 PM said:
echo td bgcolor=\$bgcolor2\nbsp;/td/tr;
uggh - apparently you've never had to redesign a
site/application that uses this style. This is one
table cell, but when you work this style through a big
app, it's a huge
[snip]
echo td bgcolor=\$bgcolor2\nbsp;/td/tr;
uggh - redesign
recommend?
[/snip]
CSS! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No need to write your own function, it's already in PHP. :-)
What you're looking for it natsort(). It uses natural order string
comparison (which takes into account numbers instead of just using
characters like a regular search does).
There are also lots of other 'nat' functions, such as
$query='Select * from users where userid='.$_POST['userid'].'';
I tend to use single quotes whenever I can and to use concatenation
instead of using in-string variables. I do this for three reasons. The
first is efficiency. Strings surrounded by single chars are not parsed
for any values, such
On Monday 27 October 2003 04:08, Manisha Sathe wrote:
I wanted some sort of IDE for PHP, so decided to use Zend (which i believe
quite popular).
I installed it on my redhat linux 8.0- both client and server components.
Instructions was smooth and gave me success msg, but now I do not know
Jay Blanchard mailto:[EMAIL PROTECTED]
on Monday, October 27, 2003 9:31 AM said:
CSS! :)
Oh that's what he meant? I thought he was talking about the quoting
style used on that line.
Chris.
p.s. The last time I actually used bgcolor was probably almost a year
ago. :)
--
Don't like
This array problem has been stumping my brain for a little while now...
here's a sample of my data:
$purchases[001][200304] = array('regular'=3, 'booked'=4);
$purchases[002][200303] = array('regular'=5, 'booked'=1);
$purchases[002][200304] = array('regular'=1, 'booked'=0);
Hi,
I'm very new with php, so perhaps it's a silly question.
I want a connection with a mysql database.
This works. I can open, retrieve data, and close the database.
But this happens in the same page.
Now I want one page that has a function who's opening and close the
Alain,
You can pass it in the function as a variable.
E.g...
Function closeDB($ref_link)
{
mysql_close($ref_link);
}
closeDB($connectie);
Hope this Helps,
Jordan S. Jones
--
I am nothing but a poor boy. Please Donate..
On Mon, 2003-10-27 at 12:44, Aaron Gould wrote:
This array problem has been stumping my brain for a little while now...
here's a sample of my data:
$purchases[001][200304] = array('regular'=3, 'booked'=4);
$purchases[002][200303] = array('regular'=5, 'booked'=1);
On Mon, Oct 27, 2003 at 09:38:32AM -0800, Justin Patrin wrote:
:
: $query='Select * from users where userid='.$_POST['userid'].'';
:
: I tend to use single quotes whenever I can and to use concatenation
: instead of using in-string variables. I do this for three reasons. The
: first is
I'm trying to make this function work, but I'm not good at
functions. I have created a variable for testing payment equal
to 1 or 0 to see what would happen based on whatever the
condition is in my database (the sql stuff is not here because i
have to figure this thing out first). I get a
function $payment{
Change that to:
function payment{
$global $payment;
Regards,
-Gregory
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Make that:
function payment{
global $payment;
-Gregory
-Original Message-
From: Gregory Kornblum [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 1:30 PM
To: 'Frank Tudor'; 1PHP
Subject: RE: [PHP] function problem (simple redirect)
function $payment{
Change that to:
On 27 Oct 2003 13:20:48 -0500, you wrote:
echo 'table border=1'.\n
.'tr'
.'thSKU/th'
.'thJan/th'
.'thFeb/th'
.'thMar/th'
.'thApr/th'
.'thMay/th'
.'thJun/th'
.'thJul/th'
.'thAug/th'
.'thSep/th'
.'thOct/th'
.'thNob/th'
Curt Zirzow mailto:[EMAIL PROTECTED]
on Friday, October 24, 2003 5:19 PM said:
You probably have a field name that is a keyword of some sort. Hard
to tell without seeing the create table syntax.
I checked this out and I did not have any keywords as column names.
Would it help if I posted
--- Frank Tudor [EMAIL PROTECTED] wrote:
function $payment{
You probably mean payment, not $payment.
header (location:test_page.html);
The Location header has an uppercase L, a space after the colon, and an
absolute URL after the space. Your example violates all three.
Hope that helps.
$payment = 1;
function payment(){
global $payment;
if ($payment == 0);
header (location:test_page.html);
}
global $payment;
elseif ($payment == 1) {
header (location:test_page2.html);
}
__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
Here is what Ihave
I am getting a elseif parse error. Is there something I'm
leaving out?
Frank
code
---
$payment = 1;
function payment(){
global $payment;
if ($payment == 0);
header (location:test_page.html);
}
global $payment;
elseif ($payment == 1) {
header
Remove the second 'global $payment;'. Regards.
-Gregory
-Original Message-
From: Frank Tudor [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 2:01 PM
To: 1PHP
Subject: [PHP] RE: function help redirect help
Here is what Ihave
I am getting a elseif parse error. Is there
I have try
but I get the following error:
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource
in /home/schoolre/public_html/Hitek/Online/connectie.php on line 16
Alain
Jordan S. Jones [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Alain,
You can pass
Sorry I'm getting this error message
Parse error: parse error, unexpected T_ELSEIF
__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
--- Frank Tudor [EMAIL PROTECTED] wrote:
I am getting a elseif parse error.
Let me clean up your code a bit, and hopefully the error will stand out.
function payment()
{
global $payment;
if ($payment == '0');
header ('Location: http://example.org/test_page.html');
}
global
$payment = 1;
function payment(){
global $payment;
if ($payment == 0){
header (Location: test_page.html);
}
elseif ($payment == 1) {
header (Location: test_page2.html);
}
}
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##
Please, if you are using
I made the changes but I am getting:
Parse error: parse error, unexpected T_ELSEIF
I did take the second global statement out after I cut and
pasted your code and modified the urls
so now here is what it looks like (the whole thing).
Frank
?PHP
$payment = 1;
function payment()
{
--- Frank Tudor [EMAIL PROTECTED] wrote:
function payment()
{
global $payment;
if ($payment == '0');
header ('Location: http://ftudor/test/test_page.html');
}
elseif ($payment == '1')
{
header ('Location: http://ftudor/test/test_page2.html');
}
Your code looks
No, he's right - this is an issue.
Do variables persist between PHP files?
In the attached scripts I have a login page which directs the user, on a
sucessful login, to a front page which is a frameset.
The login.php opens a connection to a MySQL database ($connection) but once
the browser has
This one worked (kinda)
I have no more errors but it doesn't do the redirect (hmmm)??
So now here is what it looks like:
I am putting in the $payment=1; so it will automatically go to
test_page2.html but it just sits there.
Is there a headers thing already going on blocking this?
I know
--- Frank Tudor [EMAIL PROTECTED] wrote:
I am putting in the $payment=1; so it will automatically go to
test_page2.html but it just sits there.
[snip]
header ('Location: http://ftudor/test/test_page2.html');
What happens when you type it into your browser manually?
On Monday, October 27, 2003 11:26 AM, Frank Tudor wrote:
This one worked (kinda)
I have no more errors but it doesn't do the redirect (hmmm)??
?PHP
$payment = 1;
function payment(){
global $payment;
if ($payment == 0){
header ('Location: http://ftudor/test/test_page.html');
}
Can you see the problem(s) now? Never underestimate the benefits of
writing
clean code. :-)
Hehe, you should see my code..
function dp_neg($v1,$v2){
$neg = ((substr((string)$v1,0,1)==-)||((substr((string)$v2,0,1)==-)));
$bneg= ((substr((string)$v1,0,1)==-)((substr((string)$v2,0,1)==-)));
1 - 100 of 163 matches
Mail list logo