@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24



Comments:

<0> try print_r($_POST) to output all your POST variables
<1> I have <form action="/foo" method="post"> and I have <input type="text" name="firstname" ... /> and when I do $_POST['firstname'] it says its not set
<1> sec
<1> Array ( )
<0> print_r says it's an array o.O ?
<1> yes that is what it outputs.. lol
<1> it is an array though
<1> lol
<2> Killer666: s/he is testing $_POST not the firstname... i ***ume ;)
<3> can someone help me with a regular expression
<0> if you have any variable in array you give to print_r it should output them in form 'name' => 'value'
<1> but I dont
<1> well I want to have one but its not there
<1> I dont know why, which is why im here
<2> heh
<2> try a simple form



<0> it's maybe an indication that form is broken
<2> and don't use /foo as the action
<1> im not actually using /foo
<1> lol
<2> heh
<2> after i wrote that, i had doubts of my writing :)
<4> I used append_sid for all my links in my website, this is so the session transfer over and they don't need to keep logging in. How do I store this session in a cookie? append_sid makes it impossible for any google/yahoo crawlers to work
<0> if you are not clear is your form is ok, try validating html code, helps to find typos and bad nesting
<1> http://vc.endra.org/register/view/1
<1> thats the site
<1> sec
<1> !v http://vc.endra.org/register/view/1
<1> nvm lol
<1> thought you guys had the !v :-/
<4> CSS has a !v
<0> form action="/register/view/1", try action="1"
<0> seems like you got clever url rewriting there
<1> yes :)
<1> I got programming OCD
<1> lol check out the site output
<1> its like.. perfect
<1> :P
<1> site source actually
<1> ill fix the errors then ill see whats going on
<1> brb
<0> or try action="http://vc.endra.org/register/view/1";
<1> nah its fine because I did method="get"
<1> and it worked but only method="post" dont work
<0> it may be url rewriting
<1> nah its all included from the top index file
<1> only 1 .php site runs the whole site
<1> the other php files just have content in them
<5> ridiculous! i still can't change my nick :@
<5> >_<
<2> your web server could disallow post
<2> how about you do a simple test, with a simple form, from a simple file
<5> philip: in your simple socks, while you sit on your simple chair in your simple house and live your simple, simple life.
<2> you know me too well!
<5> whois philip
<5> er
<5> damn:(
<4> Can anyone point me to a tutorial that shows me how to have sessions stored as cookies, so I don't need append sid and the google crawlers can craw like god intended?
<2> cookies are automatic first choice
<2> there is a directive to force cookies as well, as in, only allow cookie for session
<1> what directive is that
<4> ok I think I understand
<1> hey
<1> does form work inside a <p> ?
<6> endra, have you tried it?
<7> question : i want to sum information and store as varible, like sum o_total from orders and store it as $cash .. any idea?
<8> is it possible to use SASL (ie: secure authentication) with mail() or a mail()-variant in php?
<9> Hi there.. I was looking to setup a script that creates pages (Like a search that displays say 20 results per page, and sets up the appropriate pages, etc)
<6> litage, I vaguely recall it may be possible with PEAR's Mail_mime... but not sure.
<10> litage if you use phpMailer.sf.net then its easy !
<8> thanks guys, i'll look into those
<8> lig: hrmm, i don't think PEAR's Mail_Mime() supports SASL (http://pear.php.net/manual/en/package.mail.mail-mime.php)
<6> litage, did you check the Mail package?
<9> I'm trying to go about getting pages setup for mysql results for my site. How do I go about setting that up? I know I have to use offset and limit, but how do I go about setting up how many pages are total ?
<6> litage, I found "$params["auth"] - Whether or not to use SMTP authentication. Default is FALSE" but unsure if that is what you want.
<6> litage, in the Mail::factory



<8> lig: hey, you're right. damnit, i was searching for "sasl" rather than "auth". thanks for that
<10> litage: trust me .. this is the easiest way to do what you want to do http://phpmailer.sourceforge.net/ ..
<1> hello
<1> guys please I need help :'(
<1> im seriously about to cry if I cant figure this out
<11> sometimes tears are a good thing
<1> do I gotta declare post global to use it in other .php files?
<10> endra: whats the problem?
<1> well post isnt working..
<12> endra: no
<1> see I got a index.php that includes another .php file which uses $_POST
<12> it already is global
<10> have you put print_r($_POST) on the included file to see that the variables are there ?
<1> yes I have mash
<13> I've got a very beginner question - how do you tell whether the request you're responding to is a GET or POST?
<1> it just says Array( )
<1> there are NONE, there should be like 6-7..
<12> vermnicious: if (isset ($_POST)) might be one way
<1> $_SERVER['REQUEST_METHOD'] I think
<12> that sounds better
<12> endra: and it works from index.php?
<1> I dont know, lets try that.
<12> let's
<1> no it does not output anything.
<12> funny
<12> maybe the problem is with the form?
<1> its not because I tested it with my friends .php file
<1> its on his own server I just pointed action to it
<1> and it showed me the print_r($_POST) fine..
<13> thank you both. $_SERVER['REQUEST_METHOD'] will do the trick.
<1> anytime verm
<1> I should check the request method myself
<1> sec
<1> get
<1> its always showing get..
<1> why :(
<14> because you told it so
<14> make it post
<12> what is your form method?
<1> it is post
<1> lol
<15> I have a string "<div>fooobar<strong>hallo</strong></div> <div>another div</div>" and looking for a regular expression to match the first div. My not working ideas here: http://hashphp.org/pastebin.php?pid=6888
<1> <form action="'.$_SERVER['REQUEST_URI'].'" method="post">
<10> endra: doa print_r($_REQUEST)
<1> GETArray ( [PHPSESSID] => 29185821ab6e35be362cc6405f0670c7 )
<10> your not mod_rewite or soemthig silly like that ?
<1> DocumentError 404
<14> and what is in this REQUEST_URI ?!?
<1> its the same uri it was at.. e.g. /register/view/1
<0> i did raw post before with curl, it sends post request but looks like post data gets lost
<10> endra: does print_r($_REQUEST) print output the vars...?
<1> no
<1> just the phpsessid
<10> endra: strange... U seem to be using mod_rewite ?
<16> hello
<1> im not
<1> im using .htaccess doing DocumentError 404 /index.php
<1> or errodocument whichever one
<1> and it points all to index.php, which finds the path to the real thing and includes it
<10> endra: can you paste the code ?
<1> once thats included, the real thing outputs the code
<1> what code?
<1> include /path/to/file.php
<1> thats the code lol
<1> then what that file.php does is output the html source accordingly
<17> !+u
<18> Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
<1> !+omg
<1> lol
<1> -.-
<1> ok
<1> so .. what seems to be the problem :(
<17> !+enter
<18> Don't use the enter key as punctuation. Think in complete thoughts, then type.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

Segmentation Fault in , waiting for debugger modernbill
acpi_poweroff_called amd64
mysql (errno: 30)
JoshTriplett
#debian
#linux
glxgeras output frames
saxdualhead resolution xorg.conf
grub idebus 133
jpilot avantgo fedora



Home  |  disclaimer  |  contact  |  submit quotes