I think a better way for you to go(it may be a little bit more
difficult, but it won't have any annoying "flickering" from the
reloading of page) is to use AJAX.
But if you insist on going on a PHP form + Javascript validation ->
submit form ->PHP form + Javascript validation, that can be done
You've tried accessing $_GET in reservation.php?
Like
$_GET['client'] would return "apartment1" in reservation.php if you
clicked on
http://www.taximauritius.mu/reservation.php?client=apartment1
-Minuk
Imroz wrote:
Hi PHP Gurus
Am new to the php world, I need help to do something. PlZzz
Thanks! It turns out there was an rpm installed php-4.2.3 which was
clobbering with my PHP-5.0.5 installation.
I removed it with
apt-get remove php
and reinstalled PHP-5.0.5 and pear works fine!
Thanks again!
-Minuk
M wrote:
Minuk Choi wrote:
I can't seem to get pear to work corr
I can't seem to get pear to work correctly.
if I type
[/]# pear install DB
I get the usage printed out back(no error message, no action)
and if I go to the PHP-5.0.4/lib/php directory, I get
[PHP-5.0.4/lib/php]# pear install DB
Fatal error: Call to undefined function: getoptions() in
/usr/b
can you get the output from phpinfo()?
That is, create a file, phpinfo.php with the following
and then put that in your htdocs/html directory so you can browse it
with your internet browser... there should be a configure block on that
page with all the options listed
-Minuk
[EMAIL PROTECT
Have you tried feeding that through htmlentities()?
e.g. echo htmlentities("Га");
see if that outputs what you want on the page.
-Mk
Andreas Jakl wrote:
I've been searching for quite some time now and tried several functions,
but didn't find a solution. I hope somebody can point me in the r
Good job!
However, let me give a few suggestions to optimize the code
function trim_text($text, $count)
{
$text = str_replace(" ", " ", $text);
/*
* This is redundant; you are replacing all " " in $text with " "
* maybe you meant
* $text = trim($text); ?
*/
...not quite sure what you're asking. Are you asking for help on how to
process these variables?
I wrote this off the top of my head... meaning that I did not test it...
since I don't know if this was what you were asking... I just fiddled
with it.
Add this code and tell me if it prints out
... what, the off by one error?
Hey, I was just providing suggestion off the top of my head. :-P
-Minuk
Robert Cummings wrote:
On Thu, 2005-10-20 at 23:27, Minuk Choi wrote:
Off the top of my head...
$filename = $_SERVER['PHP_SELF'];
$strippedFilename = substr($filenam
Off the top of my head...
$filename = $_SERVER['PHP_SELF'];
$strippedFilename = substr($filename, strrpos($filename, '/'));
references :
http://us3.php.net/substr
http://us3.php.net/manual/en/function.strrpos.php
-Minuk
John Taylor-Johnston wrote:
SCRIPT_NAME and PHP_SELF always include lea
ime']}\n";
$msg .="Message: {$_POST['message']}\n\n";
$to ="[EMAIL PROTECTED]";
$subject ="There has been a disturbance in the force";
$mailheaders ="From: Inspired-Evolution.com
<http://www.inspired-evolution.com>\n <http://www.inspired-evol
an error:
*Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in *
/hsphere/local/home/bruceg/inspired-evolution.com/Contact_Form_test.php<http://evolution.com/Contact_Form_test.php>
* on line *63*
-Bruce
On 10/17/05, Minuk Choi <[EMAIL PROTECTED
Wait a minute... you meant
{
echo "input.error";
}
else
{
echo "input.normal";
}
?>" id="firstname" name="firstname" type="text" value="">
...or am I looking at the wrong thing?
Bruce Gilbert wrote:
-- Forwarded message --
Assuming that you are also accepting partial matches... (e.g. if you had
a sentence with something like, "Mr. LeBlue says hello", and
that should be a match for "blue")
If $mysqlString contains 1 sentence from the mySQL database(I assume
you've a loop or something that'll fetch 1 string per ite
I'm just taking a wild guess...
but I'm guessing that if you set a name with spaces, it'll be replaced
with "_"(underscore).
A couple of ways around this is to
1) figure out a way to assign a one-word name for all your
books(e.g. Code, ID number, etc.)
2) generate a hash code(e.g. md5($
Months ago when I kept encountering that problem, it was due to this.
Suresh, in /home/gift1/public_html/home.php, do you have a space, an
empty line, etc. ? that file should start with
"I put double quotes to emphasize that there should be NOTHING before the
PHP script start.
-Mk
Sures
have you considered attempting to use
header("Location: ".$URL);
where $URL contains the URL AFTER putting
ob_start(); at the top of the php file?
- Original Message -
From: "Justin England" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 01, 2004 4:07 AM
Subject:
ld have something to do with your PHP.ini file??
Can you post the error message, as it will give us a better idea of
what could be wrong.
Angelo
"Minuk Choi" <[EMAIL PROTECTED]> 11/26/2004 10:31:59 AM >>>
hey gang,
I have a fedora core 3, with standard PHP and MySQL included w
issue
with Sendmail, probably just with PHP/Apache.
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Thursday, November 25, 2004 2:54 PM
Subject: Re: [PHP] fedora core 3 mail() not working from web
* Thus wrot
hey gang,
I have a fedora core 3, with standard PHP and MySQL included with the
distribution.
I'm having a rather odd problem.
the following script(mailTest.php)
does NOT work if I access it from the web
BUT
if I were to execute it as root on the Command prompt
php mailTest.php
It exe
How big are the video files(byte wise)?
Have you tried uploading a non-video file of the same size?
- Original Message -
From: "Jay Fitzgerald" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 2004 12:10 PM
Subject: [PHP] Video Uploads
I can upload just about every
Victor, try this.
at the TOP of your HTML, put
then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and
somewhere(in the middle, in the end), you can call
where $URL is a variable that contains a URL and it will work.
?>
- Original Message -
From: "Victor C." <[EMAIL PROTEC
Minuk
- Original Message -
From: "Dale Hersowitz" <[EMAIL PROTECTED]>
To: "'Minuk Choi'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 19, 2004 12:38 AM
Subject: RE: [PHP] problem with array
Minuk,
After much searching and asking, I found the an
$selectedCol=$row["selectedCol"];
echo $selectedCol;
$selectedColName=$row[$selectCol]; //<--- PLEASE NOTE THIS SPECIFIC
ROW
Please give me the output, what do you get from "echo $selectedCol;"? If I
had to guess, it looks like you're confusing key and value of an
associatative ar
As far as checking to see if it's a number, note that you can get the
following
"10" = string that contains 10
10 = integer that contains 10.
You can verify that a variable contains numbers or numeric data by using
if (is_numeric($variable))
{
$variable is either a number variable or a string
This is a test e-mail, please disregard
If you don't mind NOT using regex or regular expression searching commands,
you can try it this way.
Assuming that there is a carriage break(e.g. "\r\n" if windows, and I'm
assuming the HTML file was written in windows, otherwise, just "\n" for Unix
and "\n\r" for Mac, I believe).
$eolnString
the ", $desc)" is your culprit.
foreach ($arrayVariable as $key=>$value)
is probably the form you meant.
foreach ($admin_get_options_result as $api =>$file, $desc)
what is $api, $file, $desc supposed to be? If I were to hazard a guess, is
the $admin... array a nested array, something like
$admin
Well, you can just put up a regular form, something to the effect of
Hostname
User Name
Password
...
...
...
etc.
and when you submit that form, those variables will be accessible under the
$_POST array
such as
$hostName = $_POST['Hostname'];
$userName=$_POST['username'];
etc.
NOTE that doing
and tables, any ideas how i can get this info to change the
connect_db file so that it doesnt have to be done manually.
"Minuk Choi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
try this :
$link = mysql_connect($host, $user, $pass);
Note : No SINGLE quotes.
In PHP, q
try this :
$link = mysql_connect($host, $user, $pass);
Note : No SINGLE quotes.
In PHP, quotations are as follows
$host = 'localhost';
$a = '$host';
$b = "$host";
echo $a;
that prints $host
echo $b;
that prints localhost.
HTH
-Minuk
- Original Message -
From: "bigmark" <[EMAIL PROTECTE
Okay, so in other words...
//Doc1.php
include functions.php //this file contains the function definition for
"protectText()"
include formProcessor.php //this file contains the code that calls
"protectText()"
include form.php //this file gets the form data from user
By any chance, are ANY of the
s the value for
MYSQL_VERSION_ID, though.
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 09, 2004 2:46 AM
Subject: Re: [PHP] MYSQL_VERSION_ID?
* Thus wrote Minuk Choi:
I've a Redhat9 and installed MySQ
I've a Redhat9 and installed MySQL 4.0 from source and Apache 1.3 from source.
I also downloaded the PHP5.0.2 source and attempted to compile it.
Apache and MySQL are installed successfully, as they all work without any noticeable
errors.
This is how I configured PHP5
./configure --prefix=/PH
Oh, I see. Thanks for clarifying.
- Original Message -
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 4:05 PM
Subject: Re: [PHP] php5 and php4?
* Minuk Choi <[EMAIL PROTECTED]>:
But then, d
;[EMAIL PROTECTED]>
Sent: Tuesday, September 21, 2004 1:45 AM
Subject: Re: [PHP] php5 and php4?
On Tue, 21 Sep 2004 01:29:06 -0400, Minuk Choi <[EMAIL PROTECTED]>
wrote:
I've been meaning to ask this... but I always thought I could find the
answer online(I didn't). Back wh
I've been meaning to ask this... but I always thought I could find the answer online(I
didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released.
What was the main reasoning behind this move? Is it because PHP5 is more OOP(similar
to java)?
I have a RedHat9 machine.
I needed to have multiple MySQL installations, so I removed the RPM
installation and did a binary installation of MySQL-4.0.20. As it stands, I
have the following installations
/usr/local/mysql-4.0.20-webpage
/usr/local/mysql-4.0.20-exp
/usr/local/mysql-4.0.20-def
Thes
38 matches
Mail list logo