Re: Dynamic Form building



..oO(Brunda)

1) Can some one explain the difference b/w include_once and
require_once
'coz there are some instances when we use include_once() and the code
works and in same case if we use require_once() it doesn't work

It's described in the manual. The difference is what will happen if the
requested file can't be included: "include" just throws a warning, while
"require" kills the script with a fatal error.

2) I have created a dynamic HTML generation code.In some cases the id
of the field is displayed as the value of the texbox (and it doesn't
happen with all the textbox's only some of them)

It's an error in your code, but impossible to fix without seeing it.

3) How to get new lines(in a para) from DB to PHP
We get the mail content from DB (Oracle 10g) and to get it in the
corect format we are using <br> but if there is some other way could
you please guide me?

I sometimes used this function to replace simple line breaks with better
HTML markup:

function nl2html($text) {
$pattern = array('#\r\n?#', '#\n\n+#', '#\n#');
$replace = array("\n", '</p><p>', '<br>');
return '<p>'.preg_replace($pattern, $replace, $text).'</p>';
}

Micha
.



Relevant Pages

  • Re: Messages Not Seen
    ... I was able to fix the problem though, ... > This program can longer run and will now terminate. ... > MS-MVP Windows Shell/User ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Messages Not Seen
    ... Fatal error ... This program can longer run and will now terminate. ... Any idea what this is and how I can fix it? ... MS-MVP Windows Shell/User ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • "unresolved token" link errors
    ... How do I fix them? ... Linking... ... LINK: fatal error LNK1120: 12 unresolved externals ...
    (microsoft.public.dotnet.languages.vc)
  • Re: FATAL ERROR
    ... "Kayman" wrote: ... FATAL ERROR ... Please re-install the product to fix the problem ...
    (microsoft.public.windowsxp.general)
  • Re: How to access Recovery Console?
    ... Fatal Error 32678 reading BOOT.INI ... > Instinct would tell me I may be able to fix this from the recovery console. ...
    (microsoft.public.mac.virtualpc)