Hi again,
Has anyone here come accross a Rich Text Format to HTML converted based on PHP?
Thanks,
Chris
i have a form set that my users can fill out thier information. at the end
of the process the results are mailed to an email address. then only
problem is that reloads the page the mail is send again. this can be a
problem...any ideas on how to prevent it??
~kurth
--
PHP General Mailing
this script isnt working like I want itmainly I need multiple eregi() to
check fields
?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$",
$Email))(eregi("^[a-z]$", $FirstName))(eregi("[a-z]$", $LastName))?
header("Location:
Great, thanks.
I looked at the file(), but it sounded like is was just for
local file use.
oops, should've been include(). Sorry :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Has any one had/heard this problem... My page doesn't load properly with netscape 4.5
Under Solaris but on WINNT 4 under both ie NN it loads perfectly can any one offer
any suggestions?
Peter Houchin
Sun Rentals
[EMAIL PROTECTED]
I want to create a list of everyone on the LDAP server, and none of the
examples I have in my books seems to work. What functions should I use to
connect to the server, and list users in the LDAP to create a phone book
type list to print out? Could someone also give me some sort of example that
I
Thought I had this licked but it's giving me a headache ... can anyone help?
here is the index.php:
?
include_once("functions.inc");
echo functOne();
?
now functions.inc declares functOne() and functTwo()...
functOne() performs an eval on $string,
and $string contains an "echo
?php
include_once('session.egn');
if (isset($HTTP_POST_VARS['submit']))
if ( isset($HTTP_SESSION_VARS['done']) AND $HTTP_SESSION_VARS['done'] ==
$PHP_SELF)
{
echo "a br\n";
echo "You can only press submit once br\n";
exit();
} else
{
echo "b br\n";
$done = $PHP_SELF;
you have a url or code sample to look at ? have you run it through html tidy
?
http://www.w3.org/People/Raggett/tidy/
also included in ultraedit 8.0a
http://www.ultraedit.com/
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
?php
foreach($blink as $pos = $val)
echo "a href='{$blink[$pos]}'{$but[$pos]} /a ";
?
or better.
?php
$link['slashdot.org'] = 'http://slashdot.org';
$link['adcritic'] = 'http://www.adcritic.com';
$link['php.net'] = 'http://www.php.net';
foreach($link as $pos = $val)
echo "a
cookies disabled and using --trans-sid ? the only way PHPSESSID can be set
is if PHPSESSID is set in the url (get) or in a form (post) if neither is
set then your hooped. a new session will be created each time.
?php
session_start()
if (!isset($HTTP_SESSION_VARS['count']))
{
I use session variables to retrieve values from form fields and send by
mail(). Problem is upon testing after I fill out form once and send, then go
back and test again with different info it sends the info from the first
time. Whats wrong?
davidg Tue Feb 27 17:00:40 2001 EDT
Modified files:
/php4/ext/midgard article.c attachment.c calendar.c element.c
event.c eventmember.c file.c group.c host.c
image.c mail.c member.c mgd_article.h
you will find some browsers dont work like they should, opera doesnt seem to
like my uploads.
?php
include_once('database.egn');
include_once('time.egn');
if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND
filesize($db_file))
{
$db_file =
form method=post enctype='multipart/form-data' action='$PHP_SELF'
input type=file name=db_file
input type=submit
/form
Don't you need a MAX_FILE_SIZE for this to work properly?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
this is probably NOT the problem, but I'll post anyway. Ive found if copying
code from web browser, ie from phpbuilder.com in IE, that 0x0D and 0x0A get
thrown in alot. this causes php to tell me that certain functions are
undefined, even though I know they are. I remove all 0x0D and 0x0A.
--
Do I have to call each variable like session_unset(var1, var2, var3);
and session_destroy(var1, var2, var3)?
I use session variables to retrieve values from form fields and send by
mail(). Problem is upon testing after I fill out form once and send, then
go
back and test again with
?php
header("Content-Type: application/download ");
header("Content-Disposition: filename=filename.txt ");
readfile('/path/to/file.zip');
?
try this, works for me.
everywhere I read they say Im supposed to use application/octlet-stream but
it doesnt allways seem to work in some
kalowskyTue Feb 27 17:02:48 2001 EDT
Modified files:
/php4/ext/imap CREDITS
Log:
#adding name to credits. nothing to see here, keep moving.
PR:
Submitted by:
Reviewed by:
Obtained from:
Index: php4/ext/imap/CREDITS
diff -u
Hi, eveyone, my name is brandon, and i made a members area for my site,
a database driven http authentication and a database for all my members
i got everything working but how do i make a database connection that
recieve the infomation for that user that has loggin into the members
area.
If i
I have this following if statement.?php
if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
then I need to check the following three strings with eregi
(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))?
header("Location: http://www.site.com/thanks.php"):
header("Location:
This is very off the topic question, people. But I just wanna see if anyone has this
experience and can tell me the procedure. I need to change the registrant company of
several domains we own to the new company name. I only know that I need to do that at
networksolution but don't have any
Brandon,
It's a little confusing.
Are you saying:
1. You have the members area - a directory, what?
2. You have created a database containing your members information.
and now you:
3. Want to know how to connect to the database?
4. Add information to the database about the
From: "Jacky@lilst" [EMAIL PROTECTED]
This is very off the topic question, people. But I just wanna see if
anyone has this experience and can tell me the procedure. I need
to change the registrant company of several domains we own to
the new company name. I only know that I need to do that
From: "Andy Jones" [EMAIL PROTECTED]
Hi
I'd normally start this mail with some background of what I'm doing,
but to save everyone time, I'll start with the questions, and then
in case anyone has alternative suggestions or workarounds, I'll
fill in the what I'm doing and why...
Within PHP
**
[EMAIL PROTECTED] is no longer a valid address.
Try replacing @CELL1.com with @alltel.com
If your email is still not delivered, please contact
the recipient and request their new email address.
Hiya as this is my first time using cookies could some one please give me an typical
life time for a cookie before is destroys its self?
thanks
Peter Houchin
Sun Rentals
[EMAIL PROTECTED]
FWIW, some time back I had to change the owner of a
domain name from my name to a corp name. Basically,
you have to get the forms from Network Solutions, fill
out the page, get it notorized and fax it back to
network solutions, you can mail it if you want.
Change over takes a couple of days if
Hiya as this is my first time using cookies could some one please
give me an typical life time for a cookie before is destroys its self?
I always delete the cookie when the browsers is closed. set lifetime to ""
to do this.
But in some cases you need cookies to detect users after longer time.
Hi everyone :-)
I need help, how can I convert the following code
into a function so that I can just place it in a global include file and call it
using viewdoc($docid); whenever necessary?
---START---
if ($docid == "")
{ echo "Fatal Error -
DocID not supplied";
exit; }
$dbh =
Clayton,
The problem is that some of your variables, e.g. $HOSTNAME, $DB_USER, etc.,
are not global variables, and so are not accessible from inside the
function.
I recommend making those settings define()s instead of variables, but if you
keep them as variables then you just need to add:
Thanks :-)
- Original Message -
From: "Simon Garner" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 9:59 PM
Subject: Re: [PHP] Converting code to a function
Clayton,
The problem is that some of your variables, e.g.
I am having a very strange problem: PHP 4.0.4 on a NT 4 platform with
IIS 5 is only allowing one surfer to do a DB Select. If the DB is busy
with the first user, the page is not available to other users. And I
have no problems with Win 2K.
Am I missing something very obvious?
Todd
--
Todd
Hello,
Sorry if this is a little off topic but has anyone successfully used mod_dav with
dreamweaver 4.0, I have mod_dav setup but am having trouble connecting to it via
dreamweaver.
If anyone has successfully used this could they email me privately, as I don't want to
waste any more
Arnold Gamboa wrote:
I hve heard a great deal about InterBase. Please comment on which is
better:
1. Speed
2. Data Reliability
3. Compatibility with PHP
Thanks for your comments.
--
1. I think Postgresql
2 and 3 I can't say which is better. Both seem to work ok - you might
want
Hi!
Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.
Is there any way I can move a file from one directory
to another and also is
php-general Digest 28 Feb 2001 05:47:44 - Issue 538
Topics (messages 41848 through 41952):
regex help
41848 by: Jerry Lake
Re: $PATH_INFO
41849 by: Sam Masiello
41850 by: Data Driven Design
GD installed but imageFUNCTIONS dont work
41851 by: Helmut Ott
Hi!
Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.
Is there any way I can move a file from one directory
to another and also is
Make the id field on the db entry unique - the second query will fail. You
should also be doing error checking on whether or not the record exists already.
--Joe
On Wed, Feb 28, 2001 at 12:15:38AM -0600, Fabian Fabela wrote:
Hi,
I have a page, and when I have to add a product I use a form,
Hi!
Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.
These are probably you are looking for.
i can't get his function to work. i pass the correct data to it...but no
results
heres the function
function display_contents($table,$session)
{
$count = 0;
$result = mysql_query( "SELECT * FROM $table WHERE
session='$session'");
From what I've read in the manual one is a post increment and the other is a
pre increment.
YOu may not see the difference in a loop statement... but if you use
simple variables like the php manual does, you'll get different results.
ref:
101 - 142 of 142 matches
Mail list logo