Re: [PHP] HTML Forms, PHP Question
On Sun, 2006-11-19 at 11:00 -0500, Stephen wrote: Hi First question to the list. I am writing a control panel for a web site and there will be about 20 HTML forms. Instead of creating 20 PHP files to process the submit data, is there a way that I can do this with a single PHP file. Either specify a specific function for each form, or use a case statement somehow to direct to the function. Yes... ?php $handlers = array ( 'myLoginForm'= 'handler_myLoginForm', 'myRegistrationForm' = 'handler_myRegistrationForm', 'myProfileForm' = 'handler_myProfileForm', 'myDonationForm' = 'handler_myDonationForm', ); $action = isset( $_POST['formName'] ) ? $_POST['formName'] : null; if( isset( $handlers[$action] ) ) { $handlers[$action]( $_POST ); } function handler_myLoginForm( $form ) { print_r( $form ); } function handler_myRegistrationForm( $form ) { print_r( $form ); } function handler_myProfileForm( $form ) { print_r( $form ); } function handler_myDonationForm( $form ) { print_r( $form ); } ? Alternatively you can use the following style: ?php $action = isset( $_POST['formName'] ) ? $_POST['formName'] : null; if( $action function_exists( ($handler = 'handler_'.$action) ) ) { $handler( $_POST ); } if( isset( $handlers[$action] ) ) { $handlers[$action]( $_POST ); } function handler_myLoginForm( $form ) { print_r( $form ); } function handler_myRegistrationForm( $form ) { print_r( $form ); } function handler_myProfileForm( $form ) { print_r( $form ); } function handler_myDonationForm( $form ) { print_r( $form ); } ? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML Forms, PHP Question
At 11:00 AM -0500 11/19/06, Stephen wrote: Hi First question to the list. I am writing a control panel for a web site and there will be about 20 HTML forms. Instead of creating 20 PHP files to process the submit data, is there a way that I can do this with a single PHP file. Either specify a specific function for each form, or use a case statement somehow to direct to the function. Thanks! Stephen Stephen: Not a problem, I use one php script to handle many forms using a case statement. You can use sessions or pass a POST/GET variable to itself to know which form to present. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML - PDF PHP Package
I am looking for a PHP based packaged (though it doesn't necesarily have to be) that will convert HTML files to their PDF representations; on the fly of course. Anyone know or have any experience w/this? Thanks in advance, We use htmldoc. http://www.easysw.com/htmldoc/ thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML - PDF PHP Package
Ok I just went through great lengths investigating this. If you have complex HTML, forget it. All the HTML - PDF conversions only work out with very simple HTML. If you are trying to convert a web page to PDF if most likely will look terrible - to check on this try it using Acrobat Distiller, assumably the best HTML to PDF converter out there (utilizing Print to PDF from browser) it still fails to output PERFECT PDF. It really bites that this isn't more easy either. That said, there are some solutions using Ghostscript, htmldoc that are really cool and fairly easy to get working! Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www.criticalcode.com -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 10:56 AM To: php-general@lists.php.net Subject: [PHP] HTML - PDF PHP Package Hi Everyone, I am looking for a PHP based packaged (though it doesn't necesarily have to be) that will convert HTML files to their PDF representations; on the fly of course. Anyone know or have any experience w/this? Thanks in advance, Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML - PDF PHP Package
I am converting simple html files.. reports that were created in Doc and then converted to html. I am assuming you are executing this tool from PHP and sending back the results once complete? How has it worked for you. Christian Chris Boget [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am looking for a PHP based packaged (though it doesn't necesarily have to be) that will convert HTML files to their PDF representations; on the fly of course. Anyone know or have any experience w/this? Thanks in advance, We use htmldoc. http://www.easysw.com/htmldoc/ thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML and PHP output to PHP variable
hello! use output buffering... ?php ob_start(); //... your code here $_contents = ob_get_contents(); ob_end_clean(); ? regards, m. Maris wrote: Hi! Let's say my index.php consists of the following: ? include(header.inc); echo pPHP says Hello World/p; ? pHTML says Hello World/p ? //.. some other php code that generates output... ? ..some other HMTL output.. My question is: how can I make the whole index.php generated output put in one PHP variable? It is also important that it is done from the same index.php file. Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML and PHP output to PHP variable
Thanks a lot Miroslav, will try this construction! :) Miroslav Hudak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hello! use output buffering... ?php ob_start(); //... your code here $_contents = ob_get_contents(); ob_end_clean(); ? regards, m. Maris wrote: Hi! Let's say my index.php consists of the following: ? include(header.inc); echo pPHP says Hello World/p; ? pHTML says Hello World/p ? //.. some other php code that generates output... ? ..some other HMTL output.. My question is: how can I make the whole index.php generated output put in one PHP variable? It is also important that it is done from the same index.php file. Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] html or php to pdf whith pdflib?
Hi Reicardo, This can't be done by using the pdf_* functions in php without reading the whole source file, parsing the HTML and then working the $x and $y for each line. There are some alternatives. If you don't really care to much about formatting you could try this: $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 595, 842); $font = pdf_findfont($pdf, Times-Roman, winansi, 0); if ($font) { pdf_setfont($pdf, $font, 10); }else{ die(Font Error); } pdf_set_value($pdf, textrendering, 1); PDF_show_wraped($pdf,strip_tags(implode(,file($filename))), 50,750,500); pdf_end_page($pdf); pdf_close($pdf); $data = pdf_get_buffer($pdf); header(Content-type: application/pdf); header(Content-disposition: inline; filename=test.pdf); header(Content-length: . strlen($data)); echo $data; function PDF_show_wraped($pdf, $text, $left, $top, $width){ $fontsize = pdf_get_value($pdf,'leading'); $length = pdf_stringwidth($pdf,$text); $textHeight = ceil($length/$width)*$fontsize; $h_align='left'; while(pdf_show_boxed($pdf,$text, $left,$top,$width,$textHeight,$h_align,'blind') 1){ $textHeight += $fontsize; } $top-=$textHeight; pdf_show_boxed($pdf,$text,$left,$top,$width,$textHeight,$h_align); return $top-$textHeight; } Of course you would need to do something about page wrapping but that should be quite easy. Also you could exec() an external programme like txt2pdf (http://www.codecuts.com/mainpage.asp?WebPageID=156). I have seen a html2pdf as well but can't remember where right now. Chris -Original Message- From: E. Ricardo Santos [mailto:[EMAIL PROTECTED] Sent: 20 December 2003 02:22 To: [EMAIL PROTECTED] Subject: [PHP] html or php to pdf whith pdflib? Hello, somebody knows like turning a file HTML or php to pdf by means of pdflib but without having to write line to line? that is, a file already existing php or HTML, can be turned with pdflib? This I ask it because to where it studies pdflib, exit pdf is due to write line by line and coordinate by coordinate. A pdf already created can also be mattered and to combine it with the new exit. But what I did not find he is all this is the particularitity that I raise. I hope has explained to me correctly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] html or php to pdf whith pdflib?
i use htmldoc, which converts html to pdf, saves trying to render lines and borders in a pdflib how painful. On Sat, 2003-12-20 at 10:20, Chris wrote: Hi Reicardo, This can't be done by using the pdf_* functions in php without reading the whole source file, parsing the HTML and then working the $x and $y for each line. There are some alternatives. If you don't really care to much about formatting you could try this: $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 595, 842); $font = pdf_findfont($pdf, Times-Roman, winansi, 0); if ($font) { pdf_setfont($pdf, $font, 10); }else{ die(Font Error); } pdf_set_value($pdf, textrendering, 1); PDF_show_wraped($pdf,strip_tags(implode(,file($filename))), 50,750,500); pdf_end_page($pdf); pdf_close($pdf); $data = pdf_get_buffer($pdf); header(Content-type: application/pdf); header(Content-disposition: inline; filename=test.pdf); header(Content-length: . strlen($data)); echo $data; function PDF_show_wraped($pdf, $text, $left, $top, $width){ $fontsize = pdf_get_value($pdf,'leading'); $length = pdf_stringwidth($pdf,$text); $textHeight = ceil($length/$width)*$fontsize; $h_align='left'; while(pdf_show_boxed($pdf,$text, $left,$top,$width,$textHeight,$h_align,'blind') 1){ $textHeight += $fontsize; } $top-=$textHeight; pdf_show_boxed($pdf,$text,$left,$top,$width,$textHeight,$h_align); return $top-$textHeight; } Of course you would need to do something about page wrapping but that should be quite easy. Also you could exec() an external programme like txt2pdf (http://www.codecuts.com/mainpage.asp?WebPageID=156). I have seen a html2pdf as well but can't remember where right now. Chris -Original Message- From: E. Ricardo Santos [mailto:[EMAIL PROTECTED] Sent: 20 December 2003 02:22 To: [EMAIL PROTECTED] Subject: [PHP] html or php to pdf whith pdflib? Hello, somebody knows like turning a file HTML or php to pdf by means of pdflib but without having to write line to line? that is, a file already existing php or HTML, can be turned with pdflib? This I ask it because to where it studies pdflib, exit pdf is due to write line by line and coordinate by coordinate. A pdf already created can also be mattered and to combine it with the new exit. But what I did not find he is all this is the particularitity that I raise. I hope has explained to me correctly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] .html extension PHP page be interpret
That's simple, just modify your Apache httpd.conf on the line where it says something along the lines of: AddType application/x-httpd-php .php4 .php .php3 .inc change it to: AddType application/x-httpd-php .php4 .php .html .php3 .inc - Original Message - From: BennyYim To: [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 5:46 AM Subject: [PHP] .html extension PHP page be interpret I using WinXP + Apache 1.3.24 + PHP 4.3.3 My apache default will interpret .php extension file. (e.g. index.php) If I have a PHP page, but I want to use .html file extension (e.g. index.html). what I need to set to make those html extension page be interpret by server. I want those .html extension PHP page be interpret. Thank You ! .---. | Message Posted by NewsgroupXplorer| | http://www.newsgroupxplorer.com | | | | Your newsreader in your browser. | `---' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] .html extension PHP page be interpret
On Tue, Nov 18, 2003 at 10:46:48AM -, BennyYim wrote: : : I using WinXP + Apache 1.3.24 + PHP 4.3.3 : : My apache default will interpret .php extension file. (e.g. : index.php) : : If I have a PHP page, but I want to use .html file extension (e.g. index.html). : what I need to set to make those html extension page be interpret by server. : : I want those .html extension PHP page be interpret. Look for the following line in your Apache configuration file and change it thusly: AddType application/x-httpd-php .php .html See the online docs for more specifics: http://www.php.net/manual/en/install.apache.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] .html extension PHP page be interpret
-Oorspronkelijk bericht- That's simple, just modify your Apache httpd.conf on the line where it says something along the lines of: AddType application/x-httpd-php .php4 .php .php3 .inc change it to: AddType application/x-httpd-php .php4 .php .html .php3 .inc And please, PLEASE remove .inc from the list, and add smth like Files /.*\.inc/ Deny from all /Files I'm not sure about the syntax, but believe me .. what I am telling you is what you want :D:D Wouter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] .html extension PHP page be interpret
[snip] I using WinXP + Apache 1.3.24 + PHP 4.3.3 My apache default will interpret .php extension file. (e.g. index.php) If I have a PHP page, but I want to use .html file extension (e.g. index.html). what I need to set to make those html extension page be interpret by server. I want those .html extension PHP page be interpret. [/snip] Answered once in the last 24 hoursadd the following line to your httpd.conf and then restart Apache AddType application/x-httpd-php .php .html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE:[PHP] HTML Template, PHP, Javascript PATH_INFO
-- snip -- I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js - 2. for not finding js2.js - 3. for not finding content1.js - 4. for not finding helloFromContent1() function I don't want to change my SRC references to be site absolute, I want them relative. Any ideas how I should 'wrap' my content using php and get functioning pages ? -- snip -- have you thoought about doing an echo on your script tags and do a getenv? that way you can simulate a relative path ie it was SCRIPT SRC=js1.js LANGUAGE=JavaScript/SCRIPT SCRIPT SRC=js2.js LANGUAGE=JavaScript/SCRIPT now ? echo SCRIPT SRC='(getenv(document_root)./js1.js)' LANGUAGE='JavaScript'/SCRIPT; echo SCRIPT SRC='(getenv(document_root)./js2.js)' LANGUAGE='JavaScript'/SCRIPT; ? hope this takes care of some of your issues. Chris
Re: [PHP] HTML Template, PHP, Javascript PATH_INFO
Richard A. DeVenezia wrote: [snip] I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js - 2. for not finding js2.js - 3. for not finding content1.js - 4. for not finding helloFromContent1() function I think you're confusing HTML. While the server understands slick.php/content1.html, HTML probably doesn't and is looking for slick.php/content1.html/js1.js (and the other files). I don't want to change my SRC references to be site absolute, I want them relative. Well, I'm glad that's what you want, but how about using it anyhow because it'll work. Like Chris said, you can use a function/variable to get the complete path so it's really no extra work for you. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML Template, PHP, Javascript PATH_INFO
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard A. DeVenezia wrote: [snip] I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js - 2. for not finding js2.js - 3. for not finding content1.js - 4. for not finding helloFromContent1() function I think you're confusing HTML. While the server understands slick.php/content1.html, HTML probably doesn't and is looking for slick.php/content1.html/js1.js (and the other files). I don't want to change my SRC references to be site absolute, I want them relative. Well, I'm glad that's what you want, but how about using it anyhow because it'll work. Like Chris said, you can use a function/variable to get the complete path so it's really no extra work for you. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com Thanks for the response. I figured out what was happening slick.php/content.html has a relative href js1.js which means the browser is going to do a get on slick.php/js1.js Thus, slick has to differentiate between html and non-html. If non-html, just echo back the file contents. slick changed to article, contentPath can be placed in folder out of webs way, or if in webs way .htaccess can restrict access to original form content. ? list ($slash, $page) = explode ('/', $HTTP_SERVER_VARS['PATH_INFO']); if ($page == '') { // just in case, make sure things start out right redirect ('/javascript/article.php/index.html'); return; } $contentPath = './content/'; $template = $contentPath . 'article-template.html'; /* $f = fopen ('c:\\temp\\article.log', 'a'); fwrite ($f, looking for $page.\n); fclose ($f); */ $page = $contentPath . $page; if (!file_exists ($page)) { header (HTTP/1.0 404 Not Found); echo HTMLHEADTITLE/TITLE/HEADBODYP$page not found./P/BODY/HTML; return; } $source = implode (, file ($page)); // server does not want html, just send the stuff back unaltered. if (!preg_match(/html$/, $page)) { echo $source; return; } // html!, rip out the pieces and replace into template page $template = implode (, file ($template)); preg_match (|HEAD.*?(.*)?/HEAD|is,$source, $head); // i insensitive, s newlines are a character preg_match (|TITLE.*(.*)?/TITLE|is, $head[1], $title); preg_match_all (|(SCRIPT.*?.*?/SCRIPT)|isU,$head[1], $script); // U ungreedy preg_match_all (|(STYLE .*.*/STYLE)|isU, $head[1], $style); preg_match_all (|(LINK .*)|isU, $head[1], $link); preg_match (|BODY.*?(.*)/BODY|is, $source, $content); $title = isset($title [1]) ? $title[1] : ''; $script = isset($script [1]) ? implode ($script[1]) : ''; $style = isset($style [1]) ? implode ($style [1]) : ''; $link = isset($link [1]) ? implode ($link [1]) : ''; $content= isset($content[1]) ? $content[1] : ''; $html = preg_replace ( array (/:title:/, /:style:/, /:script:/, /:link:/, /:content:/ ) , array ( $title , $style , $script , $link , $content ) , $template ); echo $html; function redirect($to) { $schema = $_SERVER['SERVER_PORT']=='443'?'https':'http'; $host = strlen($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:$_SERVER['SERVER_NAME']; if (headers_sent()) return false; else { header(Location: $schema://$host$to); exit(); } } ? -- Richard A. DeVenezia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html and php in the same document
* Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Apache, IIS, Other? If apache: AddType application/x-httpd-php .php .html add this ^ Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html and php in the same document
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Apache, IIS, Other? If apache: AddType application/x-httpd-php .php .html add this ^ Btw, thats in your system http.conf, and if you have permissions to do that. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html and php in the same document
At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Apache, IIS, Other? If apache: AddType application/x-httpd-php .php .html add this ^ Btw, thats in your system http.conf, and if you have permissions to do that. And every .html page is parsed by PHP. He will still have to turn PHP on and off within the page. Unless he *really* wants to hide usage of PHP, I don't see the point of doing this. Miles Thompson PS Curt - Like the sigg. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] html and php in the same document
Miles Thompson wrote: At 04:09 PM 7/24/2003 +, Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]): If php and html are to be included in the same document, does the document extension always have to be .php ? Are there ways to include php into an html document without changing the extension? Apache, IIS, Other? If apache: AddType application/x-httpd-php .php .html add this ^ Btw, thats in your system http.conf, and if you have permissions to do that. And every .html page is parsed by PHP. He will still have to turn PHP on and off within the page. Unless he *really* wants to hide usage of PHP, I don't see the point of doing this. Probably because he has a bunch of HTML pages that he wants to add a little PHP to, without renaming all of the pages and all of the links. Have the web server parse .html files and add in what you need. For .html files without PHP, there's a _little_ overhead for the parser to quickly look through it. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML and PHP
At 2003-06-04 15:59 -0400, Edward Peloke wrote: you would have to use echo or print statements... Yes. After a while I stopped mixing PHP and HTML parts and started writing everything in PHP using echo and print statements. That way the code is much more regular and flexible. Greetings, Jaap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: New word proposition (was: Re: [PHP] HTML and PHP)
HAH! I love it! -Shawn Evan Nemerson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Clode? I like it. Really, who wants to say closing php tag, terminating php tag, or whatever you say. Why not start calling it a clode? What does everyone else think? The only issue is if a closing php tag (or should it be a more general closing tag, with php being able to serve as a modifier when required, ie php clode) is a clode, would an opening [php] tag be an ode? Comments? On Wednesday 04 June 2003 12:47 pm, Christian Ista wrote: Hello, Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Christian, ?php switch($constant_lastupdate[$i][3]){ case '1' :? img src=design/logo_windows.gif alt= width=12 height=10 border=0 ?php break; case '2' :? img src=design/logo_mac.gif alt= width=10 height=10 border=0 ?php break; case '3' :? img src=design/logo_linux.gif alt= width=9 height=11 border=0 ?php break; } ? -- Two hands working can do more than a thousand clasped in prayer. -Unknown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML and PHP
you would have to use echo or print statements... -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:48 PM To: [EMAIL PROTECTED] Subject: [PHP] HTML and PHP Hello, Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Christian, ?php switch($constant_lastupdate[$i][3]){ case '1' :? img src=design/logo_windows.gif alt= width=12 height=10 border=0 ?php break; case '2' :? img src=design/logo_mac.gif alt= width=10 height=10 border=0 ?php break; case '3' :? img src=design/logo_linux.gif alt= width=9 height=11 border=0 ?php break; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New word proposition (was: Re: [PHP] HTML and PHP)
Clode? I like it. Really, who wants to say closing php tag, terminating php tag, or whatever you say. Why not start calling it a clode? What does everyone else think? The only issue is if a closing php tag (or should it be a more general closing tag, with php being able to serve as a modifier when required, ie php clode) is a clode, would an opening [php] tag be an ode? Comments? On Wednesday 04 June 2003 12:47 pm, Christian Ista wrote: Hello, Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Christian, ?php switch($constant_lastupdate[$i][3]){ case '1' :? img src=design/logo_windows.gif alt= width=12 height=10 border=0 ?php break; case '2' :? img src=design/logo_mac.gif alt= width=10 height=10 border=0 ?php break; case '3' :? img src=design/logo_linux.gif alt= width=9 height=11 border=0 ?php break; } ? -- Two hands working can do more than a thousand clasped in prayer. -Unknown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New word proposition (was: Re: [PHP] HTML and PHP)
Sounds good to me... On Wed, 2003-06-04 at 12:49, Evan Nemerson wrote: Well since you seem to be in favor of confining usage to PHP, what about phode- that way there's no association with the bullshit notices on commercial advertisements that mean nothing since the address is always either broken or just confirms your address... On Wednesday 04 June 2003 01:43 pm, you wrote: Lol. That's pretty good. I think it sounds good. Ode tho is questionable... what about opt (ie _O_pening _P_hp _T_ag)? -Michael On Wed, 2003-06-04 at 12:36, Evan Nemerson wrote: Clode? I like it. Really, who wants to say closing php tag, terminating php tag, or whatever you say. Why not start calling it a clode? What does everyone else think? The only issue is if a closing php tag (or should it be a more general closing tag, with php being able to serve as a modifier when required, ie php clode) is a clode, would an opening [php] tag be an ode? Comments? On Wednesday 04 June 2003 12:47 pm, Christian Ista wrote: Hello, Look the code below. Is it an obligation to multiply the number of ?php ?. There is no other way ? not possible to use only an open php tag (?php) and a clode php tag (?) ? Christian, ?php switch($constant_lastupdate[$i][3]){ case '1' :? img src=design/logo_windows.gif alt= width=12 height=10 border=0 ?php break; case '2' :? img src=design/logo_mac.gif alt= width=10 height=10 border=0 ?php break; case '3' :? img src=design/logo_linux.gif alt= width=9 height=11 border=0 ?php break; } ? -- Two hands working can do more than a thousand clasped in prayer. -Unknown -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML forms php 4.2.3 - how to get cvs fix applied
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Reconfigure php without --enable-mbstr-enc-trans and that will fix the problem. HTH! ~Paul On Friday 08 November 2002 06:56 pm, andy wrote: I recently updated from 4.2.0 to 4.2.3 - since doing so values submitted to php from HTML forms using keys - value=foo[bar] - get truncated in php - example: if I submit [EMAIL PROTECTED] it will come out as eight13.com with a print_r($_POST) I found these bug reports which say what appears to be the same bug has been fixed in CVS: http://bugs.php.net/bug.php?id=20024 http://bugs.php.net/bug.php?id=19829 I'm wondering where to go from this point. I have a production server which I need this fixed on. Is my only choice to checkout the entire branch for the latest version 4.2.x? (I'm assuming its branched - I've not looked at any of this yet) Is there not a patch? Could I just checkout the applicable files? http://snaps.php.net/ wasn't avilable at the time of writing this - possibly it would have given me more information. Apache 1.3.20 php from source as module Mandrake 8 - -- ~Paul Nicholson Design Specialist @ WebPower Design The webthe way you want it! [EMAIL PROTECTED] www.webpowerdesign.net It said uses Windows 98 or better, so I loaded Linux! Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD4DBQE9zcldDyXNIUN3+UQRArDSAKCRyBACPvmlkvHv5335p5jzNijyQACXaRPA JTBavZvIutTMj9eHFdu+zA== =xhW8 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML or PHP problem? Please check this ...
Can you do the strtoupper() in your query, using the appropriate Oracle function? Maybe it'll handle the different character sets better. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 07, 2002 3:07 PM Subject: [PHP] HTML or PHP problem? Please check this ... I have a capture form using text fields. This form receives data from the user and then through a php module the data will be stored on an Oracle database via ODBC. All the data is converted to caps using the strtoupper() function. However when the user writes characters like ñ the strtoupper() function changes the character (to another character but not to Ñ, or the corresponding upper character), so the ODBC manager reports an error message becouse he does not accept the converted character. Does somebody knows how can I get the correct character converted ? I will apprecciate so much your help ! Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML in PHP
echo mysql_result($result,$i, NAME);br should be: echo mysql_result($result,$i, NAME) . 'br'; Andrew - Original Message - From: Christian Ista [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 28, 2002 2:51 PM Subject: [PHP] HTML in PHP Hello, I have a newbie question for you. I do a query, I'd like to display the result but I'd like to go to a new line for each row. I use this code that's work : ?php for ($i = 0; $imysql_num_rows($result); $i++) { echo mysql_result($result,$i, NAME); } ? but this not work ?php for ($i = 0; $imysql_num_rows($result); $i++) { echo mysql_result($result,$i, NAME);br } ? Could you tell me how I can do to have a br after each row. Thanks for your help :) Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML in PHP
On Sun, 28 Apr 2002, Christian Ista wrote: ?php for ($i = 0; $imysql_num_rows($result); $i++) { echo mysql_result($result,$i, NAME);br } ? Could you tell me how I can do to have a br after each row. Two options: { echo mysql_result($result,$i, NAME) . 'br'; } or: { echo mysql_result($result,$i, NAME); ?br? } In the first one, the string br was added onto the end of whatever else echo was outputting. In the second one, we temporarily switch back from PHP to HTML, output the br tag, then switch back to PHP. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML to PHP Links
Are you talking abut HTML or PHP itself? Anyway... to have an a name=blah/a in your page you will need to echo 'a name=blah/a'; Now, PHP Nuke is another thing - it's a software and you should read through it manual in order to find a way to do this. If there's none - modify the code yourself. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) www.phpbeginner.com [EMAIL PROTECTED] -Original Message- From: G-no / |{iller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 4:20 AM To: [EMAIL PROTECTED] Subject: [PHP] HTML to PHP Links How would I make an a name=blah/a link in php?? I'm using php nuke. -- -Alias: |{iller -Website: http://www.ai-syndicate.com -AIM:Prn2000Str -Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML lists PHP
-Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 22:02 I keep getting parse error with this code: ($teams[] is a big array that I got by using mysql_fetch_array) $r = game; echo select name='game'; echo option value=game1$teams[$r.'1']/option; echo option value=game1$teams[$r.'16']/option; echo /select; This really is a faq: if you want to substitute anything other than a simple variable name into a double-quoted string, you MUST use curly braces {} to delimit it. So: echo option value=game1${teams[$r.'1']}/option; is what you need. (Note: I also treat variable names including underlines _ as being not simple, as I've had cases where PHP seems to parse these incorrectly -- for example, ...$long_name... is treated as ...${long}_name..., not ...${long_name}) If you have any doubts, include the {} -- even for simple variables, it does no harm to write, for example ...${var} I do sometimes wonder whether the {} should be made mandatory in some future version, even for simple variables, to avoid exactly this kind of confusion. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- 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] HTML lists PHP
maybe you can try something like this... $r1 = game1 $r2 = game16; echo select name='game'; echo option value=game1$teams[$r1]/option; echo option value=game1$teams[$r2]/option; echo /select; Greets, Edward I keep getting parse error with this code: ($teams[] is a big array that I got by using mysql_fetch_array) $r = game; echo select name='game'; echo option value=game1$teams[$r.'1']/option; echo option value=game1$teams[$r.'16']/option; echo /select; Im trying to make a dropdown list. Here is the error message: Parse error: parse error, expecting `']'' in /home/filanya/www/madness/bracket.php on line 65 (line 65 is the third line down) THANKS -- 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] HTML lists PHP
Try $teams[${r1.1}] or a variation on this theme hugh - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To: Phil Schwarzmann [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 28, 2002 2:16 PM Subject: Re: [PHP] HTML lists PHP maybe you can try something like this... $r1 = game1 $r2 = game16; echo select name='game'; echo option value=game1$teams[$r1]/option; echo option value=game1$teams[$r2]/option; echo /select; Greets, Edward I keep getting parse error with this code: ($teams[] is a big array that I got by using mysql_fetch_array) $r = game; echo select name='game'; echo option value=game1$teams[$r.'1']/option; echo option value=game1$teams[$r.'16']/option; echo /select; Im trying to make a dropdown list. Here is the error message: Parse error: parse error, expecting `']'' in /home/filanya/www/madness/bracket.php on line 65 (line 65 is the third line down) THANKS -- 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] HTML and PHP?
Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the closing marker or the parser will miss it! /html STOP; ? Why even bother? Why not just do this? ? html Boo /html ?php -Brian -- PGP is spoken here: 0xE4D0C7C8 Please do not carbon copy me on list replies. -- 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] HTML and PHP?
I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. At 01:56 PM 4/14/2001 -0400, Brian Clark wrote: Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the closing marker or the parser will miss it! /html STOP; ? Why even bother? Why not just do this? ? html Boo /html ?php -Brian -- PGP is spoken here: 0xE4D0C7C8 Please do not carbon copy me on list replies. -- 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] Les Neste 678-778-0382 http://www.lesneste.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]
Re: [PHP] HTML and PHP?
Hi Les, @ 2:09:01 PM on 4/14/2001, Les Neste wrote: I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. And you can do the exact same thing with what I posted. ?php function foo() { ? bar. didn't "example.com" ain't aren't ?php } foo(); ? Granted, one wouldn't bother when only one string needed to be printed, but it works just fine for large amounts of HTML. If you needed to interpolate variables, then you'd probably want to print(), echo() or use here-doc. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT carbon copy me on list replies. -- 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] HTML and PHP?
Just make sure you don't indent the closing marker or the parser will miss it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...) FYI to other readers: you can indent (or Tab) the leading marker, but the trailing maker cannot have tabs infront of it. for example ? print SOMESTUFF // leading marker here is a line of text and HTML html head SOMESTUFF; // notice no tabs here on the end marker "SOMESTUFF" ? Jason "Brian Clark" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the closing marker or the parser will miss it! /html STOP; ? Why even bother? Why not just do this? ? html Boo /html ?php -Brian -- PGP is spoken here: 0xE4D0C7C8 Please do not carbon copy me on list replies. -- 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] HTML and PHP?
try this: ? print EOP html jldsfajlf;dsajfl;dkfl;dsa /html EOP; ? AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. Thanks. Jason [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 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] HTML and PHP?
Cool. Does that work with echo too, do you know? At 06:19 PM 4/13/2001 -0700, DanO wrote: try this: ? print EOP html jldsfajlf;dsajfl;dkfl;dsa /html EOP; ? AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. Thanks. Jason [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 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] Les Neste 678-778-0382 http://www.lesneste.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]
Re: [PHP] HTML and PHP?
On 13 Apr 2001 17:39:49 -0700 AD in php.general, Jason Caldwell said: Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. You don't need to make major changes to your HTML pages. Just embed the PHP into your HTML page wherever it's needed. Your web server will still treat a PHP page as an HTML except that the PHP code embedded in it is executed on the web server. However SSI commands will have to be replaced with their PHP equivalents. -- === Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/ And my God will meet all your needs according to his glorious riches in Christ Jesus. -- Philippians 4:19 http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010413 === Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/ -- 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] HTML and PHP?
"Les Neste" [EMAIL PROTECTED] wrote: Cool. Does that work with echo too, do you know? ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the closing marker or the parser will miss it! /html STOP; ? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.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]
Re: [PHP] HTML and PHP?
oh... that rocks! would i have to still add the slashes? /n, /" -- etc? "Les Neste" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Cool. Does that work with echo too, do you know? At 06:19 PM 4/13/2001 -0700, DanO wrote: try this: ? print EOP html jldsfajlf;dsajfl;dkfl;dsa /html EOP; ? AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. Thanks. Jason [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 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] Les Neste 678-778-0382 http://www.lesneste.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] HTML and PHP?
actually just test this... don't need slashes... it works GREAT! thanks. ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b8it7$npq$[EMAIL PROTECTED]">news:9b8it7$npq$[EMAIL PROTECTED]... oh... that rocks! would i have to still add the slashes? /n, /" -- etc? "Les Neste" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Cool. Does that work with echo too, do you know? At 06:19 PM 4/13/2001 -0700, DanO wrote: try this: ? print EOP html jldsfajlf;dsajfl;dkfl;dsa /html EOP; ? AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. Thanks. Jason [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 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] Les Neste 678-778-0382 http://www.lesneste.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 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]