[PHP] number of cookies and if there are any cookies set?
I need two bits of info... (i) Are there ANY cookies set? (ii) How many cookies are set? how do I find this information out? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: want to take credit card payments (novice)?
Been looking into and and you both are right. All I have to do is sort out the SSL!! "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have any handy links/tip/tutorials for a newbee who wants to > take credit card payments? > > Using php never set up a SSL or anything. > > thanks > > Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] want to take credit card payments (novice)?
Does anyone have any handy links/tip/tutorials for a newbee who wants to take credit card payments? Using php never set up a SSL or anything. thanks Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] trying to send mail via localhost
When trying to send mail via localhost I get the following error Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Any ideas?/ RH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting $_SESSION
I have a session variable called $_SESSION['total'] the problem is I can't delete/reset it. I have tried $_SESSION['total']= 0; $_SESSION['total']= ""; and the thing remains. Is there a special way to delete them?? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: passing variables with HTTP_GET_VARS
By the way these variables are not part of a form they are just generated by index.php "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can someone show me a simple example of how to make variables availble to > all pages in my site via $http_post_vars and $http_get_vars. > > > just say I have a page index.php and that is doing a calucualtion and > creating a couple of variables called $age and $height. > > How so I make these variables globally available and how do all the other > pages show/retrieve them?? > > > Many Thanks > > > AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing variables with HTTP_GET_VARS
Can someone show me a simple example of how to make variables availble to all pages in my site via $http_post_vars and $http_get_vars. just say I have a page index.php and that is doing a calucualtion and creating a couple of variables called $age and $height. How so I make these variables globally available and how do all the other pages show/retrieve them?? Many Thanks AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting all my cookies
I have a button that sets a variable when pressed. I then try delete any cookies using the following code but no joy. if (isset($scrub)){ echo "this works"; if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $quantity) { setcookie($name, ""); } } } Please help. Any suggestions welcome. AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] deleting cookies on the touch of a button
I have a range of cookies that need to be deleted on the click of a button. The cookies are set by using. setcookie("cookie[$name]", "$age") Is there a simple command to delete all cookies or I have to do a foreach statement? How can I execute the code/function on a click of a button? Thanks, AD. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] header already sent problem
It's not a header it is a setcookie, how do I arrange the code so the cookies are set before the header is set? At what point in the HTML are the headers sent. R. "Ken" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 25 Mar 2005 15:03:45 -, AndreaD > <[EMAIL PROTECTED]> wrote: >> is there an alternative way to suppress the headers already sent problem? >> Ob_start/flush is not very neat way to so this. >> >> AD >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > you can set > > output_buffering = 4096; > > or some value you want in your php.ini file. > > Alternatively try to rearrange your code to make sure that you put all > your header() commands BEFORE anything is sent to the browser. Many > CMS out there don't use OB as their code are well written so that > anything to do with header() is before data sent to browser. > > HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] header already sent problem
is there an alternative way to suppress the headers already sent problem? Ob_start/flush is not very neat way to so this. AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: here is the problem again
The cookie will not/set or print out. "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.aztechost.com/problem.phps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cant get this to work at all
http://www.aztechost.com/problem.phps "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Fairly new to php and just working my way around it. > > I have the text boxes and want to retrieve the values using a foreach. > > > Many thanks, > > > AD > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] here is the problem again
http://www.aztechost.com/problem.phps -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cant get this to work at all
Fairly new to php and just working my way around it. I have the text boxes and want to retrieve the values using a foreach. Many thanks, AD begin 666 problem.php M/#]P:' -"@T*:[EMAIL PROTECTED]&ESPT*(" @7!E M/2)T97AT(B!C;&%S'1?9FEE;&0B(&ED/2)C;V]K:65; M:F%M97-=(B!V86QU93TB(B!S:7IE/2(Q(B!M87AL96YG=&@](C$B/@T*(" @ M(" @/"]D:78^/"]T9#X-"B @(" @(#QT9#X\<#Y*86UE'0B(&-L87-S/2)T97AT7V9I96QD(B!I9#TB8V]O:VEE6W-T M979E72(@=F%L=64](B(@http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spot the mistake??
there is a hidden field called submitte "Chris Ramsay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] >> if (isset($submitted)){ > [/snip] > s...what sets $submitted then? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] re-setting all cookies
I want a button that resets all my cookies. Can I reset them all with a foreach command? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: refreshing an included php file
Richard had got it spot on! Have solved it by using iframes. AD "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a file, index.php and this has an included file, lets call it >calculate.php. When I insert values in text boxes and hit submit the values >are written as cookies. The question is how can I refresh calculate.php so >it shows the new value. > > AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] refreshing an included php file
I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php so it shows the new value. AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] looking for address finder..uk
I'm looking for an address finder where a user types in a postcode and house number and then the user is given an option of to houses to choose from. Anything like this available for a small charge? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] More function troubles
Still strugglin through with the PHP stuff.. I keep getting a Warning: Missing argument 2 for check_zero() in c:\Inetpub\wwwroot\ecurry\order.php on line 5 if ($name == "andrea") { $experience= 2; $age= 24 check_zero($age, $experience); } This calls check which is at the very top of the page function check($age, $experience){ // this is line 5 $total= $age * $experience; if (total > 50) { echo "you have enough experience"; } } What is the usual reason for this? Thanks for your replies, AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: can I do a for each here??
Thanks for all your replies. I liked Jeffs approach as it was more straightforward and using age[Andrea] for the texboxes creates les confusion when doing the foreach statement. I didn't quite get the cookie vs session bit. Are you saying they [cookies] use greater resources? AD "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have about 10 text boxes each taking in value (ages) , The code I have >checks for a value and if it is set it then sets the cookie to that value. >The else just clears the value. On the next page I use a foreach to get the >values but I think there must be a quicker way to collect the data appart >from 10 if-else staements. > > if (isset($andrea){ > > setcookie("cookie[andrea]", "$andrea"); > } > > else {setcookie("cookie[$andrea]", ""); > > } > > > if (isset($james){ > > setcookie("cookie[james]", "$james"); > } > > else {setcookie("cookie[$james]", ""); > > } > > > AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] can I do a for each here??
Think what I want to do then is create two arrays, one for the values of the age and one for the correponding name e.g. $age = array() // this is the inputed textbox values $name= array('john', 'bob', 'tim') Then I need to assign the the ages to cookie of the persons name by using a for or do-while loop. loop{ if (isset($age[x])){setcookie("cookie[ $name[x] ]", "$age[x]");} else { setcookie("cookie[ name[x] ]", "");} }end loop Any suggestion how I would execute this would be fantactic. Not to worry I can just have 10 lines if need be. AD "Chris Ramsay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Difficult to be definitive without seeing your code, but I would be > tempted by the use of arrays... > > cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: multiple OR's
This works... if ($name == jim || andrea || tommy) I must have had an extra ( somewhere. AD "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looking for the most code efficient way to do multiple boolean OR's on one > line > > if ($name==andrea) OR ($name==john) > > Ta > > AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] can I do a for each here??
I have about 10 text boxes each taking in value (ages) , The code I have checks for a value and if it is set it then sets the cookie to that value. The else just clears the value. On the next page I use a foreach to get the values but I think there must be a quicker way to collect the data appart from 10 if-else staements. if (isset($andrea){ setcookie("cookie[andrea]", "$andrea"); } else {setcookie("cookie[$andrea]", ""); } if (isset($james){ setcookie("cookie[james]", "$james"); } else {setcookie("cookie[$james]", ""); } AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multiple OR's
Looking for the most code efficient way to do multiple boolean OR's on one line if ($name==andrea) OR ($name==john) Ta AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multiple OR's
Looking for the most code efficient way to do multiple boolean OR's on one line if ($name==andrea) OR ($name==john) Ta AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multiple OR's
Looking for the most code efficient way to do multiple boolean OR's on one line if ($name==andrea) OR ($name==john) Ta AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php