Hi,
Jonathan Rosenberg wrote:
I have been digging through the documentation for a while, but I can't find
the answer to this ...
If I have a form with multiple submit buttons, how can I tell in PHP which
button was clicked?
just give them different names e.g. submit1, submit2 ... and then
Hi,
Muhammad Khairuzzaman wrote:
Hi, thanks for the help!
I worked, but i dont get it, why use $_POST['name'] or $_GET['name'] when
the text from the internet and books I've read says just put a dollar sign
before the variable's name.
from php version 4.?.x on register_globals is turned
Hi,
$query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id
DESC;
$result = MYSQL_QUERY($query);
add or die(mysql_error()) see what MySQL doesn't like about the query.
cheers
johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi,
input type=checkbox name=sif_? echo $wponud[6]; ? value=1
I'd do it like this: inpuut type=checkbox name=magazines[] Value=?php
echo $wpound[6]; ?
Now you have an array containing all the checked magazines. To get and write
them into
the DB you could use implode() in combination with a
Hi,
Dear all folks,
I want to get the url of the previous page that my visitor came from. Is
this correct to use http_header? Or what function that will help me do this
job?
the variable $HTTP_REFERER will do the job but not all browsers support it.
Manual - Variables - predefined variables for
Hi,
Does anyone know where I can get mcrypt.dll?
I'm not sure but it might be included in the dist from
www.php4win.de
johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Hi,
does anybody know which extension I need to connect to a MSSQL DB, and
wher
I could get it?
go to www.php4win.de they offer a .exe with lots of extensions.
hope it helps
Johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
you have to go into YaST an install a programm called lex. It might be
that you also need flex. Just install lex and see if you get more errors.
hope it helps
Hi,
i created a helloworld php file and put it in my
inetpub/wwwroot/php folder and then tried to display
it in the browser but all i saw was my html code.
Can someone help please?!
You'll need to configure IIS to parse your PHP files. Use the instruction
below.
If you wonder which one to
Hi,
I got a series of string value in this format ie: 1,2,3, say pretend that
these are telephone number, which is one feild in user table.
I need to update this telephone number field, I got 3 user ID in series
like this too, ie: 3,4,5 and normally it is like
update set where userID IN
Hi,
update $T1 set caption = $caption where name = $name
put single quotes aroud the variables: caption='$caption'.
You can do this aswell:
$result = mysql_query(UPDATE $T1 SET caption='$caption WHERE name='$name',
$DB)
or die(mysql_error());
if (! $result) {
send the haeder...
}
hope it
Hi,
I just don't get it...I have a form where the user enters name, surname
and a personal code. The action page checks for correct input which
is only letters for the two names and only numbers for the code.
If there is a wrong input in one of the fields a variable is set
which is then (amongst
Well, what can I say??? Magic windows
Reboot the system or post a message and it works!
johannes
Johannes Janson [EMAIL PROTECTED] schrieb im Newsbeitrag
9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]...
Hi,
I just don't get it...I have a form where the user ent
Hi,
have a look at this article:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
it describes the setup of Apache, PHP, SSL and MySQL.
Johannes
Web master [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I am using PHP as my main
hi,
by .= you assign the value to a var in this case a string.
$test = 1;
$var = test;
$newvar = $$var;
echo $newvar; // outputs 1
Johannes
AJDIN BRANDIC [EMAIL PROTECTED] schrieb im Newsbeitrag
shawn [EMAIL PROTECTED] schrieb im Newsbeitrag
001c01c0cce3$c114c420$5c52a040@admin">news:001c01c0cce3$c114c420$5c52a040@admin...
Could someone tell me how to actually execute this script please?
$mysql_query = mysql_query(INSERT INTO $userstable (client, contact, email,
address, city, state,
Hi,
a general thought at first. When posting a rahter long sxrpit it
would be helpful to mark the lines which produce the errors.
But now straight to the point. change the inside of
your if/elseif parethesis from just the variable to
(isset($variable)) respectively to (! isset($variable)).
Hi,
put: include("connect.php"); at the beginning of query.php.
Johannes
""Picard, Cyril"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I would like to query a postgresql db with the php language.
Today I wrote a script (connectandquery.php)
Hi,
Why destroying it "before" a user logs in? Isn't it
better to start the session "after" a successful login?
And then destroying the session when the user logs out.
Or did I get it wrong. A few lines of code would help
to understand.
Johannes
"Jens Kisters" [EMAIL PROTECTED] schrieb im
Hi,
this will list all your posted variables with name and
the posted value.
while (list($key, $value)=each($HTTP_POST_VARS) ) {
echo "$key = $value br";
}
Johannes
""Mat Marlow"" [EMAIL PROTECTED] schrieb im Newsbeitrag
9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL
.
cheers
Johannes
--
Grüße aus dem schönen Tübingen
Johannes Janson ;)
"Jens Kisters" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Why destroying it "before" a user logs in? Isn't it
In case the user did not log out properly, his s
Hi,
to get the first 150 chars of a mysql filed do this:
SELECT LEFT(YourField, '150') FROM YourTable WHERE YourCondition=true;
This does it in MySQL and for PHP follow the mentioned substr-method.
cheers
Johannes
""Jorn van Eck"" [EMAIL PROTECTED] schrieb im Newsbeitrag
9bkpd8$r77$[EMAIL
Hi,
I think you can put more than one recipient into the mail-function
by seperating them with a ",". Look in the manual for detailed info.
Johannes
"Bruno Freire" [EMAIL PROTECTED] schrieb im Newsbeitrag
Hi,
there is NO way of hiding the html from the user.
the browser can't output otherwise. You can only
try to make it difficult to get the source.
Where does the " 's " problem come in? More detail plz.
Is it a part of a text? Then try htmlspecialchars() or
htmlentities().
Johannes
use srtipslashes() before writing it to the
file.
Johannes
""Dddogbruce (@home.com)"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
there is NO way of hiding the html from the user.
the browser can't output otherwise. You can only
try to make it
"Brandon Orther" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I there a way for me to find out what variables are being sent to script?
Example:
http://www.myscript.com/myscript.php?var1=asdfvar2=asdf
that above would be $var1 and $var2
if
Hi,
I'll spare you from the stuff with stupid question and answers
http://httpd.apache.org/dist/httpd/binaries/win32/ is the address
to the win32 binary. get 1.3.19 cause some more einvironment variables
are supported. To set the wholee thing up I can recommend this:
Hi,
this is the regular expression from a PHP book.
ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-z]{2,3})$,
$formfield");
looks horrible but works.
"Sharat Hegde" [EMAIL PROTECTED] schrieb im Newsbeitrag
Hi,
i'm sorry but I don't quite get what you mean. Which button is
pressed. or post the code.
Johannes
"Augusto Cesar Castoldi" [EMAIL PROTECTED] schrieb im Newsbeitrag
Pine.GSO.4.10.10103271417160.12546-10@venus">news:Pine.GSO.4.10.10103271417160.12546-10@venus...
I had a form with
Hi,
if ($name == " ") { checks for a space in $name.
"empty" is either if (§name == "") without a free space
between "" or you could do it with empty($mane)
if (empty($name)) is true if it is empty (who would
have thought this?)
Johannes
"Louis Brooks" [EMAIL PROTECTED] schrieb im
Hi Louis,
you cuold try it with if (empty($fname)) { redirect...
just check again that your form is ok.
Johannes
"Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks for everyone's response. I am still not able to get the
Hi,
i'm not that much into mail functions but my manual tells
me that impa_delete selects a message to be deleted.
imp_expunge delets all selected messages.
look into the correct syntax
Johannes
"Miguel Carvalho" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL
Hi,
for the haeder just make sure that there is NO output
whatsoever before the header-call. even if line 1 of your
script is empty before the ?php-tag the header doesn't work.
"Louis Brooks" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks for all
Hi,
get an editor which suits your needs and demands, a server and
(if needed somr database app) and just do it by trial and error.
tutorials on php:
www.phpbuilder.com
www.webmonkey.com
www.devshed.com
feed any search engine with "php tutorials" and find more.
good luck
Johannes
p.s. what's
Hi,
first of all being desperate for help is okay but please don't write in
cabs.
try this:
while ($row = mysql_fetch_array($result) ) {
echo "a href=http://tias.kub.nl/programs/$row[opleiding_afkorting]/
$row[leergang_afkorting/
e.g.
input type=password name=memberid !!NOW!! value=?php echo "whatever"; ?
Johannes
"Victor Hamutenya" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi, my name is Victor from Namibia, I do web development with PHP, I
hapenned to find your email
Hi,
I'm not sure but I think it's "--with-config-file-path=/path/to/dir.
Good Luck
Johannes
""Steve Haemelinck"" [EMAIL PROTECTED] schrieb im Newsbeitrag
003901c08a14$3f692bd0$0200a8c0@shaemeli">news:003901c08a14$3f692bd0$0200a8c0@shaemeli...
I want to put the php.ini in /etc/php
Which
reset($array), if this is what you need.
this resets (who would have thought it?) the internal pointer back to the
first
position.
""Julia A . Case"" [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible to move through an array that is returned
uot;liThe counter is now $SESSION[count] ";
?
johannes
"Jimmy Bäckström" [EMAIL PROTECTED] schrieb im Newsbeitrag
007801c0859d$8ef1e0f0$554d59d5@broder">news:007801c0859d$8ef1e0f0$554d59d5@broder...
Yeah I used a path name with '\' instead of '/' but it still does not work.
you have to set the 'session.save_path' in your php.ini.
be careful with the slashes you use. as you can see from
the error msg by default it's '/' but windows uses '\'.
good luck
Johannes
"Jimmy Bäckström" [EMAIL PROTECTED] schrieb im Newsbeitrag
40 matches
Mail list logo