play_
-
Posts
717 -
Joined
-
Last visited
-
Days Won
1
Posts posted by play_
-
-
...im trying to ask for help but i can't because whenever i post my code, i get that error.
I think all my quotes or a variable name is interfering with the forum code? -
::edit::
-
Is there all that is to it?
There should be more code, one that sets off the script when the "send" button is clicked... -
ok id like to infrom that ive been trying to post a reply for the past 10 minutes, but i get this error:
[img src=\"http://img.photobucket.com/albums/v425/play/help/f38bb280.jpg\" border=\"0\" alt=\"IPB Image\" /]
-
[!--quoteo(post=351337:date=Mar 3 2006, 09:31 AM:name=edwinsweep)--][div class=\'quotetop\']QUOTE(edwinsweep @ Mar 3 2006, 09:31 AM) [snapback]351337[/snapback][/div][div class=\'quotemain\'][!--quotec--]
i have been using the <form> manners a lot for passing data, its just that the only way i know to send it is to put a button in the browser that they have to click that will perform the submit. is there a manner to do this automaticly so i can just give normal hyperlinks instead of a <form> SUBMIT button all the time???
thanks in advance!
[/quote]
I once asked this same question.
It's in a thread somewhere....
Here edwin,
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=82929&hl=\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...topic=82929&hl=[/a] -
I did try adding a name also last night, but didn't work.
I didn't name it "variable" though.
Ill give it a shot when i get home today.
Thanks ken -
Are you getting any errors? if so, show us which.
-
Hello Ken.
I used the code you gave me:
[code]
<?php
if(!isset($_POST['submit'])) $variable = "testing";
?>
<form action="s.php" method="POST">
<input type="hidden" value="<?php echo $variable ?>" />
<input type="submit" name="submit" />
</form>
[/code]
and this page, which receives the form:
[code]
<?php
$sq = $_POST['variable']; <---- line 2
echo $sq;
?>[/code]
error:
Notice: Undefined index: variable in c:\program files\web\easy php\www\s.php on line 2
I have tried making it $_POST, but didn't work -
Thank you Ken.
And Carl,
If you need variables from prior Forms, as in, user inputed variables, you can use $_POST, and $_GET.
not sure if that is what youre really asking or not, but worth a shot lol.
ps: ken, didn't work :( -
Ok. It's been a month almost since i've done php.
Anyways, i am trying to pass a variable from a page to another, without using a session (using the $_POST global var)
I know how to pass values FROM a form, that the user entered in a field. But i wanna pass a value that is not user entered.
i have this:
[code]
<form action="s.php" method="POST">
<input type="submit" name="submit" />
</form>
<?php
if(isset($_POST['submit'])) {
$variable = "testing";
}
?>
[/code]
which processes to this page:
[code]
<?php
$sq = $_POST['variable'];
echo $sq;
?>[/code]
and of course i've tried some other things but it won't work.
is it possible at all? (without Sessions?)
Ive been thinking that it is not possible because $variable is not a $_POST, and for a variable to be $_POST, it has to be user input. but im not sure. -
I was distracted by all the beautiful girls in there. wow.
-
maybe an array or database?
-
[!--quoteo(post=342706:date=Feb 4 2006, 02:10 PM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Feb 4 2006, 02:10 PM) [snapback]342706[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hey! play?
what do you think it was
an egg drop like this --> [a href=\"http://www.eggheads.org/pipermail/eggheads/1999-November/001978.html\" target=\"_blank\"]http://www.eggheads.org/pipermail/eggheads...ber/001978.html[/a]
or a backdoor?
Is it hacked passing thru using LINUX, APACHE, FTP or the PHP script?
and by the way what was the OS for that case?
And who was your suspects and that time?
waiting for more details from you [b]play[/b]?
-/james/
-and also i remember a few months ago that phpfreaks.com was also hacked, i wonder who was their suspect? Did 'Eric' found out who did that to this website?
-and how many times did phpfreaks.com was hacked? What do you think?
[/quote]
I have no idea how it was done. but the server OS was linux. I know it wasnt through any php coding of mine because at the time i didnt program in php. only css and html -
[!--quoteo(post=342614:date=Feb 4 2006, 07:21 AM:name=askjames01)--][div class=\'quotetop\']QUOTE(askjames01 @ Feb 4 2006, 07:21 AM) [snapback]342614[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[b]ATTENTION:[/b] Geeks, CRacker, Hacker, Gurus... : )
What are you worse php attacks experiences...
I just want to hear it from you guys...
I believed discussing this topic will inform most of us PHP developers,
so that when we encounter these problem we all now have a little know how, to avoid
these malicious cases!
And maybe we can prepare to patch the holes!... in the future!
Waiting for your grudges and experiences...
thanks for your advance cooperation...
-/james
------------
Your good neighborhood
[/quote]
Been hacked only once really. I guess it was brute foce. I opened my ftp and saw a random folder with a file in there. went to the link and it said "hacked by (whatever)".
But i'd say the most common is defacing. and the worst would be a buffer overflow. -
Btw, i orginally posted this in the phpnewbie forum because i thought it had something to do with how .'s and spaces and other characters would affect the database.
-
Why is it that most sites only allow letters, numbers and underscores in usernames?
what's wrong with using spaces or . or ()...
? -
[!--quoteo(post=334304:date=Jan 7 2006, 07:34 AM:name=Petemac)--][div class=\'quotetop\']QUOTE(Petemac @ Jan 7 2006, 07:34 AM) 334304[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Yes, this is what I have heard.
But I have seen it done...
I think it is javascript.
This site uses it:
[a href=\"http://www.mad4milk.com\" target=\"_blank\"]www.mad4milk.com[/a]
Highlight some text with your mouse, and the hi-lite color is pink
-
Go me
in PostgreSQL
First post.
but what the hell is PostgreSQL?
display orginized mysql query
in PHP Coding Help
Posted
try this
$edit = '<a href ="cms.php?page_id='.$page_id.'">Edit Page</a> '