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 as
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.
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 correctly
can you get the output from phpinfo()?
That is, create a file, phpinfo.php with the following
?PHP
echo phpinfo();
?
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
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
br /
bFatal error/b: Call to undefined function: getoptions() in
Have you tried feeding that through htmlentities()?
e.g. echo htmlentities(#1043;#1072;);
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
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($filename, strrpos
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
://evolution.com/Contact_Form_test.php
* on line *63*
-Bruce
On 10/17/05, Minuk Choi [EMAIL PROTECTED] wrote:
Wait a minute... you meant
input class=
?PHP
if ($error_msg)
{
echo input.error;
}
else
{
echo input.normal;
}
? id=firstname name=firstname type=text value=?PHP echo
$_POST['firstname
*/
On 10/18/05, Minuk Choi [EMAIL PROTECTED] wrote:
Can you post your Contact_Form_test.php?
input class=?PHP
if ($error_msg)
{
echo input.error;
}
else
{
echo input.normal;
}
? id=firstname name=firstname type=text value=?PHP echo
$_POST['firstname'];?
should parse into HTML by PHP. This block, I am
Wait a minute... you meant
input class=
?PHP
if ($error_msg)
{
echo input.error;
}
else
{
echo input.normal;
}
? id=firstname name=firstname type=text value=?PHP echo
$_POST['firstname'];?
...or am I looking at the wrong thing?
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
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.
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
?PHP
NOT
?PHP
or
?PHP
I put double quotes to emphasize that there should be NOTHING before the
PHP
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: [PHP]
, there was no 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 wrote Minuk Choi:
hey gang,
I have a fedora
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 with the
distribution.
I'm having a rather odd problem.
the following
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)
?PHP
$result = mail('[EMAIL PROTECTED]', 'test subject', 'test message');
if (!$result)
echo FAILURE;
else
echo SUCCESS;
Victor, try this.
at the TOP of your HTML, put
?PHP
ob_start();
?
then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and
somewhere(in the middle, in the end), you can call
?PHP
header('location: '.$URL);
?
where $URL is a variable that contains a URL and it will work.
?
-
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 everything
- 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 answer to my problem. It
turns
out that after re-attaching my
$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 array.
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 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, quotations are as follows
$host = 'localhost';
$a = '$host';
$b
Well, you can just put up a regular form, something to the effect of
form action=create_db.php method=post
Hostname input type=text name=Hostname
User Nameinput type=text name=username
Password input type=text name=password
...
...
...
etc.
/form
and when you submit that form, those variables will
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
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
This is a test e-mail, please disregard
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
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 PROTECTED]
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 MySQL 4.0 from source and Apache 1.3 from
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
: 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 when PHP 5.0.1 was released, PHP
4.something else
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, don't you run the risk of having 2
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
38 matches
Mail list logo