Hi experts,
Im new to php. i want to pass the posted values of the current page to destination page using anchor tag.
let me explain you breifly..
my current page is first.php which contains a total of 24 controls in it. it contains buttons named UPDATE,SUBMIT and links such as DETAILS. The DETAILS link is written as follows.
<a href="details.php">DETAILS</a>
Now if i click on DETAILS link all the 24 posted values should get posted to details.php.
would appreciate if you could please help me out..thanks in advance.
Thanks,
krishna.p
how to post the values using anchor tag in PHP?
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: how to post the values using anchor tag in PHP?
You can not send POSTs through a link unless you are using AJAX. If you are a beginner then I recommend sending them as a GET. If you want clean URLs then you could use SESSIONS.
Re: how to post the values using anchor tag in PHP?
Thanks for the reply..
how can i use SESSIONS..i think to use SESSIONS we need to reload the current page and after that we have to give our Destination page.
would appreciate if you could please tell me how to use SESSIONS to pass the posted data when clicking on a DETAILS link?
Thanks in advance...
Thanks,
krishna.p
how can i use SESSIONS..i think to use SESSIONS we need to reload the current page and after that we have to give our Destination page.
would appreciate if you could please tell me how to use SESSIONS to pass the posted data when clicking on a DETAILS link?
Thanks in advance...
Thanks,
krishna.p
Re: how to post the values using anchor tag in PHP?
But you can submit a POST form (why the hell do we capitalize that word?jaoudestudios wrote:You can not send POSTs through a link unless you are using AJAX
Re: how to post the values using anchor tag in PHP?
Even better, you can style a submit button to look like a link and not use javascript at all. By the way, I like to write 'post' instead of POST 