[PHP] Server side issue with form
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Server side issue with form
My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Server side issue with form
Here is the code: index.html html body form action=test.php method=post Your name: input type=text name=YourNameBR Cost of a lunch: input type=text name=CostOfLunchBR Days Buying Lunch: input type=text name=DaysBuyingLunchBR input type=submit /form /body /html index.php ? $Today = date(1 F d, Y); ? html body Today's Date: ? print(h3$Today/h3\n); print($YourName, you will be out ); print($CostOfLunch * $DaysBuyingLunch); print( dollars this week.BR\n); ? /body /html Returns: Today's Date: 1 June 10, 2007 , you will be out 0 dollars this week. Thanks in advance for any feedback! Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 6/10/07, Roy W [EMAIL PROTECTED] wrote: My host company must have an installation/configuration issue. Variables from forms are not being passed to the php scripts that are sent via Form Has anyone heard of this and know of the fix? I don't think that's possible, please show us part of your code, as I expect the problem to be there. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] attach file with mail() function??
Is there a way to attach a file with the mail() function? Thanks!
[PHP] Escaping nasty quotes
I have this: $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY ' . '' . ' ; $result = MYSQL_QUERY($query); PRINT br$query2br; The query doesn't take ... but if I cut and paste the printed response into the mysql server manually ... works like a charm :-(
RE: [PHP] Escaping nasty quotes
Sorry...Because of the double quote near the ENCLOSED BY .. It delivers a PARSE ERROR ? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:38 PM To: Roy W; [EMAIL PROTECTED] Subject: RE: [PHP] Escaping nasty quotes [snip] $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY ' . '' . ' ; {/snip] try ... $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '' ; The period concats were not needed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Escaping nasty quotes
Thanks, Chris. But I kept what I had and then just added: $query = addslashes($query); Doesn't return an error.. But doesn't complete the task. :-( -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:39 PM To: Roy W; [EMAIL PROTECTED] Subject: Re: [PHP] Escaping nasty quotes --- Roy W [EMAIL PROTECTED] wrote: The query doesn't take ... but if I cut and paste the printed response into the mysql server manually ... works like a charm http://www.php.net/addslashes 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
RE: [PHP] Escaping nasty quotes
Unfortunately, they are indeed enclosed by double quotes Roy -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 12:58 PM To: Roy W; [EMAIL PROTECTED] Subject: RE: [PHP] Escaping nasty quotes [snip] Sorry...Because of the double quote near the ENCLOSED BY .. It delivers a PARSE ERROR $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '' ; [/snip] Are the fields enclosed by a quote? If not... $query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS TERMINATED BY ',' ENCLOSED BY '' ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Simple date question
If I have: $firstdate = 2003-06-28; then how can I get $firstdate plus 4 days? Thanks!
[PHP] Returning TWO variables from function
Can someone let me know how to return TWO variables from a function I tried: return $var1, $var2; But I get parse errors and other errors. Thanks!
[PHP] typecasting .. easy?
$amount is a calculated number If $amount equals for example 52., how do I get that to print as 52.00 similarly, if amount = 52.5 how do I get that to print as 52.50 Thanks! (looked at all sort of type casting manual stuff to no avail)
[PHP] Question on SELECT
I have a bunch of variables stuffed in myArray() I want to run a MySQL SELECT statement ($query= ..) where it will access only those records in the database WHERE table.fieldname is found in myArray Is there a simple one liner? Or do I have to loop it through (kinda nasty as you can imagine) Help anyone? Thanks!! :-))
[PHP] Where can I find a routine ......
Where can I find a routine or PHP prog that will evaluate the distances between zip codes or find within X miles of a zip code Any ideas? -- 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] Opening a new page when done
I have several scripts that when you complete a form it executes a PHP script. At the end of each script I have a simple statement saying it's done and then a place to hyperlink back to a given page: PRINT Process complete. a href=\index.html\Click here/a to continue; But what I really wanna do is just have the script code execute and when its all done - just take the user automatically to index.html or some other page. I know there's a command but cant seem to find it. Thought it might be include() but couldn't figure out my syntax Ideas? 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]