$string = nl2br($string)
This will change a new line into br; but make sure HTMLspecialchars aren't
in the same part.
--
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
Hi.
I'm writing a new script, but I need some help.. I won't post here
because it's just too much. I'm looking for someone who is dedicated
and patient in helping a 13 year old with SQL and connecting/recieving,
inserting and updating databases. I have ideas, I have some basic
knowledge of PHP
Alrighty. I'm baack! Anyways, I seem to be having stupid little
problems, al of which are driving me insane. I'll feel really
stupid when you tell me the problem. A friend told me something about
"seeding" for random() but I didn't find anything on that.
This is the HTML section...
HTML
PHP4 - written by Chris Ullman (and some others. It has 5 pictures on the front...)
--
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]
Thanks for all the advice, Brian. If you're referring to a database as
MySQL or any other database technology then I guess I haven't been precise
enough. I'm really quite new into PHP and I'm just using text files for
now. I'm slowly working my way up to MySQL, but fooling around with my
I'm having a problem with HTMLspecialchars and nl2br interfearing with
each other. Obviously, I'm trying to stop malicous HTML/scripts from
being entered into my guestbook, but I'm also trying to add spacing.
nl2br adds br, but HTMLspecialchars tells it to not show that.
Anyways, I'm sure there
Hi.
Considering PHP takes " 's " into consideration as part of the script,
and adds a slash infront of them I need a way to overcome this. And
second of all, I need a way to prevent HTML code from being seen, none
the less used on the output.
?
$space = " ";
if( $submitfrm )
{
echo "your
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.
I want to hide the HTML from the browser. If someone adds some malicious
code, or even u/u I don't want it to underline.
Where does the " 's "
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]
?
$greeting = "Hello!"
echo "$greeting"
?
g
--
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]
Ok, I know it's messy - no, I don't care. :P
Parse error: parse error in C:/XITAMI/owen/website/tss/guestbookSG.php
on line 43
html
head
titlethe southern side : owen : mmmHm/title
style
!--
A:hover { color:rgb(215,152,1); cursor:hand-il; }
A:link { font-style:normal; font-weight:normal;
Whistler's cool!
--
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]
All the variables are true. When I "post" the information to a nother file from
the form, it works.
This is the form script, if you're wondering..
HTML
TITLESubmit news/TITLE
BODY
form action="newSubmit.php" method="post"
tdName:/td
tdinput type="text" name="frmName" size="24"br
tdEmail:/td
I'm writing a news script, and I just got it working earlier this
morning. Now it writes the variables from the form to the .txt file;
but when I go to write again (another news article) it does it beside,
not above. Me, thinking so brilliantly at 6AM, thought append would
mean above, but it
Thanks for the quick reply, looking in to it!
--
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]
Ok, with this fseek..
Could you give me an example of how to implement it?
--
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]
Thanks! :)
Jack Dempsey wrote:
someone was asking about fseek...try this:
http://www.php.net/manual/en/function.rewind.php
i haven't tried it, but it seems to return the pointer to the beginning,
which is where you wanted...
-jack
--
PHP General Mailing List (http://www.php.net/)
To
When you say $newsSubmit = fread ($fd, filesize ($filename));
Do you mean specify the filename? $news.txt then?
--
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
Oh. Duh! Thanks. ;P
Joe Brown wrote:
Take a closer look at the previous message I sent $filename was defined as:
$filename="news.txt";
""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
$fp = fopen ($filename, "r");
$newsSubmit = fread ($fd, filesize ($filename));
These are giving me a parse error:
Warning: Supplied argument is not a valid File-Handle resource in
C:/XITAMI/owen/website/php/newsSubmit.php on line 10
--
PHP General Mailing List (http://www.php.net/)
To
I'm such a pest. g
--
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]
Ok, it wrote, but didn't write above.. *grins*
--
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]
Ok, I'll get this eventually. groan
--
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]
I've defined all the variables in the form, and have all the files..
HTML
TITLESubmit News/TITLE
BODY
Your news has been processed and added to the main page. Thanks!
?
if($formSubmit) {
$newsSubmit = file("news.txt");
$fp = fopen("news.txt", 'a');
fwrite($fp, $frmName);
fclose($newsSubmit);
}
24 matches
Mail list logo