[PHP] Re: Multiple Form Submit Buttons

2002-10-11 Thread Johannes Janson
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

[PHP] Re: Undefined variable

2002-10-09 Thread Johannes Janson
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

[PHP] Re: numrows

2001-08-23 Thread Johannes Janson
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

[PHP] Re: Form help

2001-08-13 Thread Johannes Janson
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

[PHP] Re: http header

2001-07-10 Thread Johannes Janson
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

Re: [PHP] Does anyone know where I can get mcrypt.dll?

2001-05-16 Thread Johannes Janson
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

Re: [PHP] Extensions for PHP

2001-05-15 Thread Johannes Janson
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

Re: [PHP] Install Prob PHP4

2001-05-15 Thread Johannes Janson
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

Re: [PHP] Php Newbie

2001-05-14 Thread Johannes Janson
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

Re: [PHP] update statement

2001-05-11 Thread Johannes Janson
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

Re: [PHP] Update statement sent by PHP to MySQL

2001-05-11 Thread Johannes Janson
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

[PHP] function not working after header call

2001-05-08 Thread Johannes Janson
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

Re: [PHP] function not working after header call

2001-05-08 Thread Johannes Janson
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

Re: [PHP] very basic question, needs direction!

2001-05-03 Thread Johannes Janson
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

Re: [PHP] how to get var value

2001-04-26 Thread Johannes Janson
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

Re: [PHP] insert into

2001-04-24 Thread Johannes Janson
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,

Re: [PHP] I don't get it ... suddenly my script doesn't work ...

2001-04-21 Thread Johannes Janson
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)).

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Johannes Janson
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)

Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson
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

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Johannes Janson
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

Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson
. 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

Re: [PHP] Characters counting

2001-04-18 Thread Johannes Janson
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

Re: [PHP] Mail help!!!!!

2001-04-17 Thread Johannes Janson
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

Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson
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

Re: [PHP] HTML and slashes.

2001-04-17 Thread Johannes Janson
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

Re: [PHP] What variable are being sent to my script?

2001-04-13 Thread Johannes Janson
"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

Re: [PHP] install question: idiot guide to apache and phph and mysql on win NT 4

2001-04-13 Thread Johannes Janson
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:

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Johannes Janson
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

Re: [PHP] form and php

2001-03-27 Thread Johannes Janson
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

Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson
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

Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson
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

Re: [PHP] POP mail delete

2001-03-27 Thread Johannes Janson
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

Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Johannes Janson
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

Re: [PHP] just a newbie in php, don't get mad

2001-03-26 Thread Johannes Janson
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

Re: [PHP] NEWBIE QUESTION

2001-02-01 Thread Johannes Janson
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/

Re: [PHP] PHP forms

2001-01-31 Thread Johannes Janson
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

Re: [PHP] [NEWBIE] PHP.INI

2001-01-29 Thread Johannes Janson
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

Re: [PHP] PHP/MySQL question

2001-01-29 Thread Johannes Janson
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

Re: [PHP] Session problems

2001-01-24 Thread Johannes Janson
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.

Re: [PHP] Session problems

2001-01-23 Thread Johannes Janson
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