Concluído

WordPress plugin NOT get variable in $_POST() or HREF

I need a solution for getting the $_POST('rec') into external function customer_advertisement_function().

I tested 2 ways to get the variable without success. With the HREF data-id="'.$adds->id.'" is send and with the <form>><input> $_POST('rec'). But both are empty when starting the function.

When I print_r($_POST) shows empty array().

Who can help me getting the correct var in the function customer_advertisement_function() so I get the right record when editting it.

The foreach shows some advertisings.

foreach($result as $adds) { // list the records

$content .= '<form method="post" action="">

<tr>

<td align="left"><b>'.$adds->date_added.'</b></td>

<td align="left"><b>id= '.$adds->id.' : '.$target.' </b></td>

<td align="left"><b>'.$adds->add_title.'</b></td>

<td align="left"><b>'.$adds->visible.'</b></td>

<td align="left"><b>'.$adds->profile_status.'</b></td>

<td align="left">

<input class="fusion-modal-text-link" type="submit" data-id="'.$adds->id.'" data-pk="'.$adds->id.'" data-toggle="modal" data-target="#editadvertisement" role="dialog"/>

<input type="hidden" name="rec" id="rec" value="'.$adds->id.'" />

</form>

</td>

<td align="left">

<a class="fusion-modal-text-link" data-toggle="modal" data-id="'.$adds->id.'" data-pk="'.$adds->id.'" data-target="#editadvertisement" role="dialog" title="'.__('View', 'agent-plugin').'" href="#editadvertisement?id='.$adds->id.'">href link</a>

</td>

</tr>

';

}// END foreach($arrInvites as $userData)

// popup a modal to edit the selected record

$content .= do_shortcode( '[fusion_modal title="'. __('Edit advertisement', 'agent-plugin').'" size="large" background="" border_color="" show_footer="no" class="fusion" name="editadvertisement" id="editadvertisement"][customer_advertisement][/fusion_modal]' );

Realization: today

Theme used: Avada Child-theme (latest)

Coding: on my server

Milestone: 1, released after finishing project

Habilidades: PHP, WordPress

Veja mais: plugin wordpress exit popup, post popup plugin wordpress, custom post query plugin wordpress, export post plugin wordpress, slideshow post plugin wordpress, multi columns post plugin wordpress, wordpress open popup post, wordpress javascript popup link plugin, wordpress javascript popup plugin, advanced search post plugin wordpress, wordpress image popup plugin, wordpress javascript popup message plugin, advanced post selection plugin wordpress, popup window plugin wordpress, plugin wordpress sale, classifieds plugin wordpress, classified plugin wordpress, plugin wordpress auto post, export posts plugin wordpress, job board plugin wordpress

Acerca do Empregador:
( 33 comentários ) Enschede, Netherlands

ID do Projeto: #13384766

Concedido a:

$15 USD em 1 dia
(144 Comentários)
6.7

3 freelancers estão ofertando em média $15 para esse trabalho

saaz109

hi I am very much sure that I can complete work as per your requirements.I assure you that I will provide you quality work and within the decided time frame and budget. Please drop me a message for further discussio Mais

$15 USD em 1 dia
(36 Comentários)
5.2
santhosh8591

A proposal has not yet been provided

$15 USD em 1 dia
(0 Comentários)
0.0