[PHP] Re: [PHP-WIN] [PHP-NIX] File upload
can you send me the fread() part of your script? and what is the OS you are tring this? any how i like to share my coding which I did few weeksback for one of my Windows buddy. Vk. Ragnar wrote: > Hi Vk, > > I tried this beforehand, but to no avail. The documentation > also states that this form field entry does not overwrite the > max_filesize_setting in php.ini, when uploading. > > so even if I set the hidden form field to 30MB and the .ini > setting is 8MB the file will be rejected if it's over 8MB. > > I am am wrong on this, let me know. > > > > > are you uploading the file through a HTML form? if so check the FORM for > > the > > following > > hidden input field... > > > > increace the above value (in bytes) to a bit > > more > > value than your maximum > > file size you are tring to upload. > > > > happy coding... > > > > Vk. > > > > > > Ragnar wrote: > > > > > Hi guys/girls, > > > > > > I am having some major pain here with a php script handling file > > uploads. > > > It's part of an CMS and the file in question takes a PDF, makes a > > thumbnail > > > of it and then moves it to it's proper location on the server. > > > > > > All this works fine with smaller files < ~ 2 MB. > > > > > > I am having a file that needs to be uploaded to the server though, that > > is > > > 2.3MB and the script just doesn't handle it. > > > > > > I have already increased all the PHP.ini setting (i.e. max_file_size, > > > max_input_time, max_execution_time etc.) but to no avail. > > > > > > All the setting are well beyond of what the actual process takes, and > > the > > > script itself doesn't seem to timeout, it just comes back with: > > > > > > "Warning: Unable to open 'none' for reading: No such file or directory > > in > > > ..." > > > > > > which is pointing to the line where the file is copied from it's temp > > > location on the server /tmp/ to it's proper folder. > > > It seems to me, the file (temporary) never actually ends up on the > > server in > > > the first place. > > > > > > As I said above, for smaller files everything works fine. > > > > > > All this is running on: > > > Apache, PHP 4.1.2, Linux > > > > > > The increase for the php.ini variables is only made for one of > > > the domains hosted on that machine via entries in the virtual host part > > > of the httpd.conf and I checked with phpinfo() wether the variables that > > > increased via those setting are actually changing accordingly. > > > All that looked fine. > > > > > > Does anyone have an idea what could be going on? > > > I'd appreciate any help on this, as the client is expecting this to > > > be fixed ASAP. > > > > > > cheers, > > > > > > Ben > > > > > > -- > > > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! > > > Jetzt aktivieren unter http://www.gmx.net/info > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > NEU : GMX Internet.FreeDSL > Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl pab.php Description: application/unknown-content-type-phpfile upload.php Description: application/unknown-content-type-phpfile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-WIN] [PHP-NIX] File upload
are you uploading the file through a HTML form? if so check the FORM for the following hidden input field... increace the above value (in bytes) to a bit more value than your maximum file size you are tring to upload. happy coding... Vk. Ragnar wrote: > Hi guys/girls, > > I am having some major pain here with a php script handling file uploads. > It's part of an CMS and the file in question takes a PDF, makes a thumbnail > of it and then moves it to it's proper location on the server. > > All this works fine with smaller files < ~ 2 MB. > > I am having a file that needs to be uploaded to the server though, that is > 2.3MB and the script just doesn't handle it. > > I have already increased all the PHP.ini setting (i.e. max_file_size, > max_input_time, max_execution_time etc.) but to no avail. > > All the setting are well beyond of what the actual process takes, and the > script itself doesn't seem to timeout, it just comes back with: > > "Warning: Unable to open 'none' for reading: No such file or directory in > ..." > > which is pointing to the line where the file is copied from it's temp > location on the server /tmp/ to it's proper folder. > It seems to me, the file (temporary) never actually ends up on the server in > the first place. > > As I said above, for smaller files everything works fine. > > All this is running on: > Apache, PHP 4.1.2, Linux > > The increase for the php.ini variables is only made for one of > the domains hosted on that machine via entries in the virtual host part > of the httpd.conf and I checked with phpinfo() wether the variables that > increased via those setting are actually changing accordingly. > All that looked fine. > > Does anyone have an idea what could be going on? > I'd appreciate any help on this, as the client is expecting this to > be fixed ASAP. > > cheers, > > Ben > > -- > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen! > Jetzt aktivieren unter http://www.gmx.net/info > > -- > PHP Windows 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] problem with INSERT query
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') in above line, note the two quotes, in both side of each value.. this is the cause to your DB syntax error.. correct the above line as follows... ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile)"; and try, but investigate for "why you are getting two quotes instead of one quote. Viraj [EMAIL PROTECTED] wrote: Well, I tried that and this is what i got: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') DB Error: syntax error well, when I echo again, i can successfully see the values I entered. But this time there's a "DB syntax error" and when I went into the database to view, it stil reflect a "NULL" value... --- On Tuesday 09 December 2003 15:20, [EMAIL PROTECTED] wrote: This is what I get after I "echo" my query statement: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES ('NULL', 'NULL', 'NULL', 'NULL') How come the value is null??? In my INSERT query, I already state my value variable to be the name of the fields in my html. Why is it still inserting "NULL" into the database when I have entered values in the HTML fields? $sql = "INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile) VALUES ('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile')"; What could be the problem?? $tutor_name = $db->quote($POST["tutor_name"]); $tutor_contact = $db->quote($POST["tutor_contact"]); $tutor_email = $db->quote($POST["tutor_email"]); $tutor_profile = $db->quote($POST["tutor_profile"]); You most probably be wanting to use $_POST instead of $POST.
Re: [PHP] problem with INSERT query
insert following... echo $sql; immediatly after the folowing code block.. $sql = "INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile) VALUES ('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile')"; then execute the script, and check whether it show s the correct values for the '$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile'. you will note the problem. Viraj [EMAIL PROTECTED] wrote: Hi all, I am trying to do a simple INSERT data into the database using the following php script but the problem here is that whenever I click "submit", the script only insert a "NULL" value into the columns into the datadase instead the value I enter in the forms fieldSELECT query was successful but not INSERT.. A snip of the code are as follow: //set error variable $err .= check_tutor_name(); $err .= check_tutor_contact(); $err .= check_tutor_email(); $err .= check_tutor_profile(); //define connection string $dsn = "mysql://root:[EMAIL PROTECTED]/table1"; //connect to DB $db = DB::connect ($dsn); //check for any DB connection errors if (DB::isError ($db)) die ($db->getMessage()); $tutor_name = $db->quote($POST["tutor_name"]); $tutor_contact = $db->quote($POST["tutor_contact"]); $tutor_email = $db->quote($POST["tutor_email"]); $tutor_profile = $db->quote($POST["tutor_profile"]); $sql = "INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile) VALUES ('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile')"; //execute query statement $result = $db->query($sql);//check for DB query error if( DB::isError($result) ) { die ($result->getMessage()); **HTML** " method="post"> Teacher Name: Contact No: Email: Profile: } So, what could be the problem with the code I have wriiten??? Any help are appreciated. Irin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: goto label
if you are porting an old programme, try using "SWITCH", some time back i successfully ported a lengthy code in to PHP which had many "GOTO"s . Viraj note: also, i had to use some parameter passing mechanism. Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, if there's any way to achieve 'goto "label":' using PHP Thanx for ur time Nitin goto is a very old and broken way of coding. If you ever find yourself in need of a goto, you should re-evaluate how you're doing things. If you're having trouble finding out how to do it better, just ask here. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linux Issues
Stephen, Try Debian Woody (3.0) with latest stable KDE desktop. You will be ammazed with the GUI, it's like a Dream.. very fancy , smooth and colourfull. regards Viraj Stephen Craton wrote: > > Well, I'm wanting one with a really nice GUI and great functionality. I'll > check into Debian and Slackware later today after church. Any other good > recomendations? > > Thanks, > Stephen Craton > - Original Message - > From: "andu" <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Saturday, September 06, 2003 11:02 PM > Subject: Re: [PHP] Linux Issues > > > On Sat, 6 Sep 2003 22:41:29 -0500 > > "Stephen Craton" <[EMAIL PROTECTED]> wrote: > > > > > Thanks for the replies. > > > > > > I've tried both 8.1 and 9.1 versions of Mandrake Linux with no luck (I > > > bought the 8.1 CDs a while back) > > > > > > I've also tried making a floppy disk but still no luck with 8.1. In 9.1, > I > > > can't get the autorun screen to make the floppy disk. > > > > Try another distro, I recommend Slackware or Debian. Another option is to > get one > > of the distros which run from the cd with the option to copy it to hard > drive like > > Knoppix, they have more advanced auto-configuration software. > > > > > > > > Thanks, > > > Stephen Craton > > > > > > - Original Message - > > > From: "Dan Anderson" <[EMAIL PROTECTED]> > > > To: "Stephen Craton" <[EMAIL PROTECTED]> > > > Cc: "PHP List" <[EMAIL PROTECTED]> > > > Sent: Saturday, September 06, 2003 10:09 PM > > > Subject: Re: [PHP] Linux Issues > > > > > > > > > > Oh also make sure you are using /9.1/ and NOT /9.2 RC1/! > > > > > > > > -Dan > > > > > > > > On Sat, 2003-09-06 at 22:51, Stephen Craton wrote: > > > > > Hello, > > > > > > > > > > This isn't really a PHP issue but I have no where else to go to get > help > > > really. Hopefully someone here can still help me. > > > > > > > > > > I am running Windows XP and have decided to install Mandrake Linux > on > > > top of it just for the heck of it. So, Friday I downloaded the latest > ISO > > > files from an FTP server and today I put in the burnt CDs and it takes > me to > > > the boot screen for it. I push enter (as it says to enter the setup) and > it > > > takes me to a blank screen and just sits there, doing nothing except > > > flashing the Caps Lock and Scroll Lock lights on my keyboard. > > > > > > > > > > I went to the online manual for Mandrake and it said to add the text > > > "noauto" which I did for the boot sequence. Same error. Any ideas what's > > > going on and how to fix it? > > > > > > > > > > Thanks, > > > > > Stephen Craton > > > > > > > > -- > > > > 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 > > > > > > > > > > > > > > > > > Regards, Andu Novac > > > > -- > > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session_start() corrupt HTML output with IE
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: > > * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > > > >header("Cache-control: private"); > > > > p.s. > > and also if there is any one wo knows what exactly this header line > > means, > > please post a brief decription. thanks. > > private means that only the intended person that is getting this > file is able to cache it. So if you're going through a proxy that > proxy must not cache that file. > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: web-mail problem
Lingua, i thought you solved this problem. any way, i just peep in to the msg you have forward as a zip file. you have tried few diffrent email adresses as the To: one of them is already exceeded the allocated storage space. another one is not exist in yahoo.com, i'll put some extract from that msgs.. <[EMAIL PROTECTED]> (reason: 554 delivery error: dd Sorry, your message to [EMAIL PROTECTED] cannot be delivered. This account is over quota. - mta223.mail.scd.yahoo.com) <[EMAIL PROTECTED]> (reason: 554 delivery error: dd This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [-5] - mta166.mail.scd.yahoo.com) <[EMAIL PROTECTED]> (reason: 550 Requested action not taken: mailbox unavailable) can you change the To: to my email address and try. it's [EMAIL PROTECTED] or [EMAIL PROTECTED] or [EMAIL PROTECTED] regards Viraj Lingua2001 wrote: > > Hi Viraj and all, > > Did you figure out what is going on with the > returned mails, Viraj? > > Thanks in advance, > > David > > >Thank you for your message. > > >I've attached one ZIP file that contains some of the > >returned mails including the most recent one (one pair: details.txt and > >message4.txt). > > >Thank you very much in advance. > > >David > - Original Message - > From: "Viraj Kalinga Abayarathna" <[EMAIL PROTECTED]> > To: "Lingua2001" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, September 02, 2003 3:42 AM > Subject: Re: [PHP] web-mail problem > > David, > > first, this is a meassage you are getting from your mail server, > > not from PHP. > > > > according to my knowladge this is due to email address routing > > problem which the mail server experience when it tries to relay the > > mail. > > if you can send me the complete bounce mail message you recieve > > i'll tell you exactly whats going on there. > > > > Viraj > > - Original Message - > From: "Lingua2001" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 02, 2003 12:42 AM > Subject: web-mail problem > > > Hi all, > > > > I am trying to solve a problem related to mail( ). I am not > > sure whether it is from SMTP directly or html tags used for html form > mail. > > I got the following message, and has anyone seen this before? > > > > * > > This email is being returned to you because the remote server would not > > or could not accept the message. The registeredsite servers are just > > reporting to you what happened and are not the source of the problem. > > > > The address which was undeliverable is in the section labeled: > > "- The following addresses had permanent fatal errors -". > > > > The reason your mail is being returned to you is in the section labeled: > > "- Transcript of Session Follows -". > > > > The line beginning with "<<<" describes the specific reason your e-mail > > could > > not be delivered. The next line contains a second error message which is > a > > general translation for other e-mail servers. > > > > *** > > > > Thank you in advance. > > > > David > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session_start() corrupt HTML output with IE
Hi hecchan, I don't have a crear idea on what your problem is, but i have read an article on phpfreak.com, it says to work the sessioned PHP scripts correctly with IE6 you have to insert.. header("Cache-control: private"); immediatly after starting the session. try this. Viraj p.s. and also if there is any one wo knows what exactly this header line means, please post a brief decription. thanks. hecchan wrote: > > Hi, > Using IE 6 (XP) i can't see the source generated for PHP even the page > works properly (It doesn't happend with Mozilla or Opera). > > If i comment out the line: > session_start() > This behaviour stops. > Any idea what's going on? > > Thanks > > hecchan > > -- > 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] Too Advanced? Re: Cookies & Hidden Image
Hi Nicole, You can not retrieve information stored in a cookie which set by one domain from some other domain. Try passing all the information you want with the image SRC tag. regards Viraj Nicole wrote: > > OK. Thanks. > > I have the hidden image code: > > http://thetrackingurl/?param1=val1¶m2=val2&etc... height=0 > width=0 border=0> > > This hidden image code is placed on the ThankYou page that people see after > they have bought something. What it does is load a script on the tracking > site to let the owner know a sale was made. > > The tracking site is different from the site that the product is sold on. > > A cookie was placed on the client's (buyer) side to store where that client > originated from. So when the hidden image is called, the tracking script is > called and tries to access this cookie to retrieve where the buyer came > from. > > But the script just gets a blank cookie when accessed this way(via hidden > image); However, if the script was accessed directly, or the thankyou page > resided on the same domain as the tracking script (which created the cookie > to begin with), the cookie has the value that it was set with. > > Does this make sense? Thanks for any input. PHP's docs on sessions didn't > seem to have anything relating to this situation; so I'm stuck. > > Nicole > > "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > --- Nicole <[EMAIL PROTECTED]> wrote: > > > Is this question too advanced for this newsgroup? > > > > Somehow I doubt it. But, that's a nice tactic for grabbing some attention. > :-) > > > > Show us some sample code of a very small test case. I can't really follow > your > > description of what you are trying to do. > > > > Chris > > > > = > > Become a better Web developer with the HTTP Developer's Handbook > > http://httphandbook.org/ > > -- > 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] Block HTML Control
you mean after "" ??? no you do not put. just think this way, if you want to diplay the HTML content just jump out by the php code by typing "?>" and back to PHP by " > You do realize that you don't need a semicolon right after correct? > > -Dan > > On Tue, 2003-09-02 at 04:59, Viraj Kalinga Abayarathna wrote: > > Seth, > > try to mingle PHP and HTML.. that means escape the PHP and jump to HTML > > when > > you want the HTML.. like this... > > > > > > > if (!$var) { > > ?> > > > > > >> ; > > } else { > > ?> > > > > > > > } > > ?> > > > > > > happy coding > > > > Viraj > > > > > > > > Seth Willits wrote: > > > > > > I'd like to show a big chunk of HTML if a particular variable is true, > > > and if its false I'd like to show a different big chunk of html. Right > > > now the only way I know of doing this is: > > > > > > if ($var) { > > > print ' > > > > > > > > > > > > '; > > > } else { > > > print ' > > > > > > > > > > > > '; > > > } > > > > > > This works, but it destroys the syntax coloring of the html making it > > > all one solid color. I'd love to know if there's a better way OTHER > > > than include()ing different files. > > > > > > Seth Willits > > > > > > --- > > > President and Head Developer of Freak Software - http://www.freaksw.com > > > Q&A Columnist for REALbasic Developer Magazine - > > > http://www.rbdeveloper.com > > > Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames > > > > > > "Knowledge is limited. Imagination encircles the world." > > > -- Albert Einstein > > > > > > --- > > > > > > -- > > > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Backup Database
you can write a PHP script to backup the DB to a SQL file and run that script using crond at scheduled time or periodiacally as you define in cron regards viraj Shaun wrote: > > Hi, > > Is there a facility out there that I can use to automatically backup my > database to my local machine every night using PHP and MySQL? > > Thanks for your help > > -- > 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] Block HTML Control
Seth, rgd viraj Seth Willits wrote: > > On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: > > >> > >> > >> Lots of > >> > >> > > > > Awesome. Thanks for the quick reply. > > Hmm.. Actually, how does this work with php & html? This is actually > what I'm trying to do. I should have said this in the first place, > sorry :) > > if ($thisVar) { > if ($myVar) { > lots; > of; > php; > } else { > > > > } > } > ?> > > Seth Willits > > --- > President and Head Developer of Freak Software - http://www.freaksw.com > Q&A Columnist for REALbasic Developer Magazine - > http://www.rbdeveloper.com > Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames > > "Read the book! Be patient! All success comes from acquiring knowledge > and experience." > -- Seth Willits > > --- > > -- > 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] Block HTML Control
Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... happy coding Viraj Seth Willits wrote: > > I'd like to show a big chunk of HTML if a particular variable is true, > and if its false I'd like to show a different big chunk of html. Right > now the only way I know of doing this is: > > if ($var) { > print ' > > > > '; > } else { > print ' > > > > '; > } > > This works, but it destroys the syntax coloring of the html making it > all one solid color. I'd love to know if there's a better way OTHER > than include()ing different files. > > Seth Willits > > --- > President and Head Developer of Freak Software - http://www.freaksw.com > Q&A Columnist for REALbasic Developer Magazine - > http://www.rbdeveloper.com > Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames > > "Knowledge is limited. Imagination encircles the world." > -- Albert Einstein > > --- > > -- > 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] web-mail problem
David, first, this is a meassage you are getting from your mail server, not from PHP. according to my knowladge this is due to email address routing problem which the mail server experience when it tries to relay the mail. if you can send me the complete bounce mail message you recieve i'll tell you exactly whats going on there. Viraj Lingua2001 wrote: > > Hi all, > > I am trying to solve a problem related to mail( ). I am not > sure whether it is from SMTP directly or html tags used for html form mail. > I got the following message, and has anyone seen this before? > > * > This email is being returned to you because the remote server would not > or could not accept the message. The registeredsite servers are just > reporting to you what happened and are not the source of the problem. > > The address which was undeliverable is in the section labeled: > "- The following addresses had permanent fatal errors -". > > The reason your mail is being returned to you is in the section labeled: > "- Transcript of Session Follows -". > > The line beginning with "<<<" describes the specific reason your e-mail > could > not be delivered. The next line contains a second error message which is a > general translation for other e-mail servers. > > *** > > Thank you in advance. > > David > > -- > 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] undefined variable
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: > > You seem confused with POST & GET, instead of using _POST to retrieve > values from the form, you use $senders_name, and further down you set > $_POST["msg"], which will only be used in the same php code on the same > page > > Try > > $msg = "Sender's Full Name:\t" . $_POST['sender_name'] . "\n"; > $msg .="Sender's E-mail:\t" . $_POST['sender_email'] . "\n"; > $msg .="Did you like the site?\t" . $_POST['like_site'] . "\n"; > $msg .="Additional Message:\t" . $_POST['message'] . "\n\n"; > > $mailheaders = "From: yoyo.monash.edu.my\~nthonyak\M\n"; > $mailheaders .="Reply-To: " . $_POST['sender_email'] . "\n\n"; > > mail("[EMAIL PROTECTED]", "Feedback Form", $msg, $mailheaders); > > -- > Chris Kay (CK) > Eleet Internet Services > M: 0415 451 372 > P: 02 4620 5076 > F: 02 4620 7008 > E: [EMAIL PROTECTED] > > -Original Message- > From: merryE [mailto:[EMAIL PROTECTED] > Sent: Friday, 29 August 2003 2:38 AM > To: [EMAIL PROTECTED] > Subject: [PHP] undefined variable > > Can anyone tell me what's wrong with my code? I tried to create a form > in html and redirect it to php. but result said: > Notice: Undefined variable: sender_name in c:\program files\apache > group\apache\htdocs\do_feedback.php on line 2 and for all the variables > ("sender_email", "like_site", and "text area"). > I have been tring to use variable but it is always said "Undefined > variable". > Please help, Thanks. > > This is the code for form > > > your name: > your email: > Did you like the site? > yes > no > > Additional message: > > > > > > Code for php: > $_POST["msg"] = "Sender's Full Name:\t$sender_name\n"; > $_POST["msg"] .="Sender's E-mail:\t$sender_email\n"; > $_POST["msg"] .="Did you like the site?\t$like_site\n"; > $_POST["msg"] .="Additional Message:\t$message\n\n"; > > $_POST["mailheaders"] = "From: yoyo.monash.edu.my\~nthonyak\M\n"; > $_POST["mailheaders"] .="Reply-To: $sender_email\n\n"; > > mail("[EMAIL PROTECTED]", "Feedback Form", $msg, $mailheaders); > > echo $_POST["sender_name"]; > echo "We appreciate your feedback"; > ?> > > -- > 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] How to get data from database with a click
try java scripts, there is a function called "onChange()", you can attach this with your combo box and can submit (SELF) the form upon the content change in combobox. I have done this long time back, i'll send you the coding if still i have that script in my archives. Viraj - Original Message - From: Subodh Gupta <[EMAIL PROTECTED]> To: PHP General <[EMAIL PROTECTED]> Sent: Friday, August 15, 2003 2:04 PM Subject: [PHP] How to get data from database with a click > Dear Friends, > > When we click a combo box, in a perticular file, the output from the > database should display in the same screen, in a text box or a combo box (We > want this to happen without pressing the submit button). > > Any clue please > > Subodh > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2003 1:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php, search engine that index via local filesystem? > > > Hi, > > Do you want to provide a web interface to your local file system? well > the easiest would then be to just exec locate, which will make use of > the slocate db. Alternatively you can try to exec find. These can be > done painlessly and you don't have to install any software. > > If you need a more sophisticated solution i belive htdig has the > facility to index from local files. > > If you are looking to build a full fledged search engine aspseek and > mnogosearch (both open source) are some of the best around. > > all the best > > > Louie Miranda wrote: > > >Do you know any? > > > > > >--- - > >Thanks, > >Louie Miranda > > > > > > > > > > > > > > > > > -- > > Raditha Dissanayake > - > http://www.radinks.com/sftp/ > Lean and mean Secure FTP applet with Graphical User Inteface. > just 150 Kilo Bytes > > > > -- > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php