Forum Moderators: coopster

Message Too Old, No Replies

working with links in PHP

         

dbarasuk

10:03 am on Sep 12, 2009 (gmt 0)

10+ Year Member



hi,
I would like to insert/include a contact form if i click on a link whose text is "Reply to post".

In other words:

I have a page listing feedback from visitors with a link called "Reply to Post". If i click on this link i would like to automatically include a contact form that resides in an includes folder. Is this possible with PHP without needing to write a Javascript which i actually don't know how to do it in Javascript?

Kind regards

claus

3:04 am on Sep 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to do it without a page refresh you have to use javascript.

On the other hand, if you don't mind a page refresh, you can just generate the same page with the contact form and display it.

For this to work, your "Reply" button would need to call a script that generated the same page with the contact form include file ... included.

Hope this helps.

dbarasuk

1:28 pm on Sep 15, 2009 (gmt 0)

10+ Year Member



Yes,
but the include file is included depending on the fact that the link has been clicked. I would like to use the page refresh.

For instance, to test that a submit button from the post array has been clicked, i would do something like if(array_key_exists('submit'), $_POST)... and then determine the list of actions to take place. I am looking for a similar way for a link and in a procedural manner.

So please, help