Jump to content

Auto call function.


johnyp

Recommended Posts

Hello i have this code:

 

<?php include "config.php"; ?>

<?php

foreach($_GET as $var => $value)
{
$out.= $var . '=' . $value . "&";
}

$out = substr_replace($out,"",-1);
$out = str_replace("(","[",$out);
$out = str_replace(")","]",$out);
$out = "http://server.softgr.com/scripts/mycarexpo/index.php?" . $out . "&submit1=1&first=1&p=advsearch";

//echo $out;

?>
</br>
<center>
<a href="" name="bikes" onClick="sendSubmit('<?php echo($out); ?>')">Search...</a>
</center

 

and all i need is after creating the $out variable to auto call the function sendSubmit('<?php echo($out); ?>') that now is at the href.

 

Is it possible? Thank you.

Link to comment
https://forums.phpfreaks.com/topic/265620-auto-call-function/
Share on other sites

You could use z-index and positioning, but if you're after hiding / showing elements you can use

$('#id _of_element').hide();
$('#id_of_element').show();

// coupled with
$('#id_of_clickable').on('click', function({
$('#id _of_element').toggle();
$('#id_of_element').toggle();
});

 

 

[/code]

Link to comment
https://forums.phpfreaks.com/topic/265620-auto-call-function/#findComment-1361345
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.