Hi friends :rolleyes:,
How can I send a form to the same page where it is in? like add a comment, The form is consists of of a textarea and a submit button, once we click the button the comment take it's place without moving to another page, I think it's clear:bemused:.
Thanks from now.
put the current file name as the form action, and process it when\if its used.
Well, I look if there are a form using:
if ( isset($_POST['var'])
and then I put my form in which I put my page name as an action tag.
Thank you dagon, it seems to be solved.
i would suggest, you check the submit button, not one of the form inputs.
It's logic, I'll do it. I got another problem, my page when there's the button is comming from a query string: <a href="showtopic.php?p=15">go comment page</a>
infogeek;10966920 wrote: I got another problem, my page when there's the button is comming from a query string: <a href="showtopic.php?p=15">go comment page</a>
I got another problem, my page when there's the button is comming from a query string: <a href="showtopic.php?p=15">go comment page</a>
and the problem is?
I intuit that this is what you want: add a hidden input in your form <input type='hidden' name='p' value='<?php echo $p ?>'>
No, there's no problem anymore , just I thought something, but, after a loop of testing I figured out the way how to use the query within a href.
Now, it's 100% solved. Thank you all: dagon, cretaceous. See ya.