Search found 7 matches

by Takeshi
Sun Nov 17, 2013 6:08 am
Forum: PHP coding => General
Topic: erase $_POST data after submition
Replies: 3
Views: 1340

Re: erase $_POST data after submition

Thank you, but I had found this code 'unset' before you wrote here, but the problem is I do not know how to use it. So for example this is a simple code: <?php if(isset($_POST['abc'])){ echo $_POST['abc']; unset($_POST['abc']); } ?> <form method="post"> <input type="text" name="abc" /> <input type="...
by Takeshi
Tue Nov 12, 2013 1:39 pm
Forum: PHP coding => General
Topic: erase $_POST data after submition
Replies: 3
Views: 1340

erase $_POST data after submition

Hello everyone, can you tell me please, how can I erase data after submition? send post data to increase some value and then I reload page, it increase my number twice ... so thats the problem ... I hope it is clear .... thanks for answers
by Takeshi
Mon Nov 11, 2013 7:52 am
Forum: PHP coding => General
Topic: Use <a href=...> to submit form
Replies: 1
Views: 827

Re: Use <a href=...> to submit form

Finaly I I solved it in a simply way ... I make ordinary button looks like an a link ... with css
by Takeshi
Fri Nov 08, 2013 1:20 pm
Forum: PHP coding => General
Topic: Use <a href=...> to submit form
Replies: 1
Views: 827

Use <a href=...> to submit form

Hello everyone, I have a little problem I can not solve. So this is the code ... <form id=id_form method=post action=../forum/page2.php> <INPUT TYPE=HIDDEN NAME='ID' value=<?php echo $db['id']; ?> /> <a href="#" onclick="document.forms['id_form'].submit();"> <?php echo $db['id']; ?> </a> </form> tab...
by Takeshi
Sat Oct 26, 2013 9:59 am
Forum: PHP General
Topic: database value to post
Replies: 1
Views: 888

database value to post

Hi all, I have a problem. At first ... I read a values into a form, method post, like this ... $row = mysql_query("SELECT MID(nazov,1,1) AS nazov FROM book GROUP BY MID(nazov,1,1)"); while ( $db = mysql_fetch_assoc($row) ) { print "<form id=myForm method=post action=blablabla>"; print "<input type=t...
by Takeshi
Fri May 17, 2013 4:35 am
Forum: PHP coding => General
Topic: Trouble with forms - $_POST['']
Replies: 3
Views: 848

Re: Trouble with forms - $_POST['']

OK so I tried to get value of a link ... but as I see now, this method was not good ... .... Now ... I use javascript instead of $_POST and it works perfect ...so this is my ne wersion of code .. :) <?php $array = array("aaa","bbb","ccc","ddd","eee","fff","ggg"); ?> <?php foreach($array as $arr){ ?>...
by Takeshi
Fri May 17, 2013 3:14 am
Forum: PHP coding => General
Topic: Trouble with forms - $_POST['']
Replies: 3
Views: 848

Trouble with forms - $_POST['']

Hi all, I have little-big problem :-) I need to do something like this ... <?php $array = array("aaa","bbb","ccc","ddd","eee","fff","ggg"); ?> <?php foreach($array as $arr){ ?> <form method=post name=my_form> <a href="#" name="point" onclick="$(this).closest('my_form').submit()"> <?php echo $arr ?> ...