RE: [PHP] Easy HTML PHP question
Yeah that would work if I knew how to do that? Any suggestions on how to go about doing that? Thanks, Jay -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 1:59 AM To: 'Fabian Raygosa'; Paulson, Joseph V. "Jay"; [EMAIL PROTECTED] Subject: RE: [PHP] Easy HTML PHP question he's right, but what about using the onclick event of the image to store a value in a hidden field (I haven't tried this but there's no reason to think it won't work) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Fabian Raygosa [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 01:11 To: Paulson, Joseph V. "Jay"; [EMAIL PROTECTED] Subject: Re: [PHP] Easy HTML PHP question For images i think its different, i don't think you can force the image name that value instead the value gets turned into "button_x" and "button_y" with relation to where the mouse clicked on the image. In any event try using GET method instead of POST method to see whats displayed on the url string then you will have your answer - Original Message - From: "Paulson, Joseph V. "Jay"" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 28, 2001 3:51 PM Subject: [PHP] Easy HTML PHP question Hello everyone- I have a pretty easy question that I can't seem to answer myself so I'm coming to you all. Below you'll see some html code for a form. Now what happens is that when I click on one of the images to submit the form (either on the update_event.gif image or the delete_event.gif image) the form goes to redirect.php. The problem I am having is that I have a switch statement which runs off the variable "button" on the redirect.php page (hence the name="button" in the form). However, you would think if you clicked on the update_event.gif that "button" would be set to "updateEvent" on the redirect.php page. Well it isn't set to anything at all! Here's the other problem, since I have two different acctions I can do on the same page I can't do Hidden variables on this page because I can't have button being two different values. Anyway, what I need is when a user clicks on the image to submit the form I need the button to be set to the correct value. Any suggestions on how to do this?? form action="redirect.php" method="post" input type="image" border="0" name="button" src="images/update_event.gif" value="updateEvent" input type="image" border="0" name="button" src="images/delete_event.gif" value="deleteEvent" /form Thanks! Jay Paulson Developer, Web Technologies Viatel, Inc. http://www.viatel.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Easy HTML PHP question
You are a God! :) It works great! Is there any chance I could get you to make some suggestions on some good javascript books or web sites? Jay -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:28 AM To: Paulson, Joseph V. "Jay"; Tim Ward; 'Fabian Raygosa'; [EMAIL PROTECTED] Subject: RE: [PHP] Easy HTML PHP question script language="javascript" function ImgClick(imgName) { ThisImage = document.all[imgName]; document.form1.fred.value = ThisImage.value; } /script form name="form1" input type=hidden value="" name="fred" input type="image" src="image.bmp" onlcick="ImgClick('image1')" name=image1 value="i1" input type="image" src="image2.bmp" onlcick="ImgClick('image2')" name=image2 value="i2" /form I'm pretty sure the event will fire before the submission but you'll need to experiment a bit (and treat this as pseudo code) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 16:17 To: 'Tim Ward'; 'Fabian Raygosa'; [EMAIL PROTECTED] Subject: RE: [PHP] Easy HTML PHP question Yeah that would work if I knew how to do that? Any suggestions on how to go about doing that? Thanks, Jay -----Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 1:59 AM To: 'Fabian Raygosa'; Paulson, Joseph V. "Jay"; [EMAIL PROTECTED] Subject: RE: [PHP] Easy HTML PHP question he's right, but what about using the onclick event of the image to store a value in a hidden field (I haven't tried this but there's no reason to think it won't work) Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Fabian Raygosa [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 01:11 To: Paulson, Joseph V. "Jay"; [EMAIL PROTECTED] Subject: Re: [PHP] Easy HTML PHP question For images i think its different, i don't think you can force the image name that value instead the value gets turned into "button_x" and "button_y" with relation to where the mouse clicked on the image. In any event try using GET method instead of POST method to see whats displayed on the url string then you will have your answer - Original Message - From: "Paulson, Joseph V. "Jay"" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 28, 2001 3:51 PM Subject: [PHP] Easy HTML PHP question Hello everyone- I have a pretty easy question that I can't seem to answer myself so I'm coming to you all. Below you'll see some html code for a form. Now what happens is that when I click on one of the images to submit the form (either on the update_event.gif image or the delete_event.gif image) the form goes to redirect.php. The problem I am having is that I have a switch statement which runs off the variable "button" on the redirect.php page (hence the name="button" in the form). However, you would think if you clicked on the update_event.gif that "button" would be set to "updateEvent" on the redirect.php page. Well it isn't set to anything at all! Here's the other problem, since I have two different acctions I can do on the same page I can't do Hidden variables on this page because I can't have button being two different values. Anyway, what I need is when a user clicks on the image to submit the form I need the button to be set to the correct value. Any suggestions on how to do this?? form action="redirect.php" method="post" input type="image" border="0" name="button" src="images/update_event.gif" value="updateEvent" input type="image" border="0" name="button" src="images/delete_event.gif" value="deleteEvent" /form Thanks! Jay Paulson Developer, Web Technologies Viatel, Inc. http://www.viatel.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Easy HTML PHP question
Hello everyone- I have a pretty easy question that I can't seem to answer myself so I'm coming to you all. Below you'll see some html code for a form. Now what happens is that when I click on one of the images to submit the form (either on the update_event.gif image or the delete_event.gif image) the form goes to redirect.php. The problem I am having is that I have a switch statement which runs off the variable "button" on the redirect.php page (hence the name="button" in the form). However, you would think if you clicked on the update_event.gif that "button" would be set to "updateEvent" on the redirect.php page. Well it isn't set to anything at all! Here's the other problem, since I have two different acctions I can do on the same page I can't do Hidden variables on this page because I can't have button being two different values. Anyway, what I need is when a user clicks on the image to submit the form I need the button to be set to the correct value. Any suggestions on how to do this?? form action="redirect.php" method="post" input type="image" border="0" name="button" src="images/update_event.gif" value="updateEvent" input type="image" border="0" name="button" src="images/delete_event.gif" value="deleteEvent" /form Thanks! Jay Paulson Developer, Web Technologies Viatel, Inc. http://www.viatel.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Calling Java inside PHP
Hello everyone- I was wondering if anyon has gotten PHP to call a Java class in a Unix enviroment? If so what are your settings in the php.ini file etc. Thanks for any help! Jay Paulson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Text and formating
or you could just call the nl2br() function to do the same thing... Jay Paulson Developer, Web Technologies Viatel, Inc. -Original Message- From: Hoover, Josh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 11:22 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Text and formating You need to do a str_replace() on any fields that need to have breaks in them. Try something like this: echo str_replace ("\n", "BR", $fieldvariable) Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here IN the "add news form" they enter the info in like this: -- This is a test. How are you today. Laddi da, Laddi da -- The output on the news page comes as: -- -- This is a test. How are you today.Laddi da, Laddi da -- -- Is there a way between php and mysql to ensure that format of the date is same going in and out? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Browser?
Is there a way to tell what browser is being used by the client in php? Thanks, Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP not sending email
Hello everyone- I'm having a small problem with PHP not sending email anywhere using the mail() function. Here are my settings for sending mail in the php.ini file (PHP version 4.03pl1 - OS Solaris) [mail function] SMTP= localhost ;for win32 only sendmail_from = [EMAIL PROTECTED];for win32 only sendmail_path = /usr/lib/sendmail -t ;for unix only, may supply arguments as well (default is 'sendmail -t -i') Thanks for any help... Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP conventions or classes
Hello everyone-- Does anyone know where I can find information about training classes for php or conventions that are taking place? I'd like to know so I can start attending these functions. Thanks, Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP conventions or classes
Thanks for the info. And you are right it would be very useful if there was some kind of web page which list all of the conventions and classes etc. Wonder how one would start that? Jay -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 11:37 AM To: Paulson, Joseph V. "Jay" Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP conventions or classes Does anyone know where I can find information about training classes for php or conventions that are taking place? I'd like to know so I can start attending these functions. We probably should have a page for this information. Here are the upcoming ones I am doing: Linuxworld (www.linuxworldexpo.com) New York, Javits Center Tuesday Jan.30 9am-noon Introduction to PHP Tuesday Jan.30 1pm-4pm Advanced PHP Wednesday Jan.31 6pm-7:30pm BOF Open Source Developers' European Meeting (www.raphinou.com) Brussels, Belgium Sunday Feb.4 3:30pm-5:00pm Technical talk Sunday Feb.4 5:00pm-6:30pm BOF NordU 2001 (www.nordu.org/NordU2001) Stockholm, Sweden Tuesday, Feb.13 9am-5pm PHP Tutorial Thursday, Feb.15 5pm-7pm BOF After that I will be at the following: March 4-6 Bangalore Bang!inux April 4-6 ApacheCon Santa Clara April 8-12San Jose SD 2001 West May 28-30 Porto Alegre (Brazil) http://www.softwarelivre.rs.gov.br/ July 23-26San Diego - O'Reilly PHP Conference Aug.12-16 Vancouver/Alaska GeekCruises Script'Scape There are many other people speaking at many other conferences, so find the closest conference and check the program. Chances are there is a PHP talk. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Easy MySQL question
Hello everyone-- I've got a easy question that I can't seem to answer for myself. I'm running a query in MySQL and want to know how many entries are in a table and then echo that out onto a page. I thought this would be easy but I don't know why it's not working. Anyway, here's what I am doing: (open db connection) $query = "SELECT count(*) FROM Movie"; $result = mysql_query($sql, $dbLink); $myrow = mysql_result($result); echo $myrow; (close db connection) I know this is wrong but I don't know how to get the results to echo out to the page. Thanks, Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]