this is my form code
how can i do for use this action and php code?
how can i do for use this action and php code?
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="Search">
<label>
<input name="search" type="text" id="search" />
</label>
<a href="../CFD_Databank/index.php?option=com_chronocontact&Itemid=27">Advance Search</a>
<p>
<input name="Search" type="submit" id="Search" value="Search" />
</p>
</form>
<?php
echo isset($_POST["search"]);
?>
<br><br>Post edited by: oosora, at: 2008/04/03 13:37
Hi oosora,
I'm not sure what this form is trying to do . . . but this goes into Form HTML
Bob
I'm not sure what this form is trying to do . . . but this goes into Form HTML
<label>
<input name="search" type="text" id="search" />
</label>
<a href="../CFD_Databank/index.php?option=com_chronocontact&Itemid=27">Advance Search</a>
<p>
<input name="Search" type="submit" id="Search" value="Search" />
</p>
What are the form action and the php snippet at the end intended to do?
Bob
Hi oosra,
You cant do this with Chronoforms unless you are willing to do a small hack, at chronocontact.html.php :
replace :
action="<?php echo $actionurl; ?>"
with :
action="<?php eval($actionurl); ?>"
Then put <?php echo $_SERVER['PHP_SELF']; ?> at the form action URL field, let me know if you tested this and how it works!
Cheers
Max
You cant do this with Chronoforms unless you are willing to do a small hack, at chronocontact.html.php :
replace :
action="<?php echo $actionurl; ?>"
with :
action="<?php eval($actionurl); ?>"
Then put <?php echo $_SERVER['PHP_SELF']; ?> at the form action URL field, let me know if you tested this and how it works!
Cheers
Max
This topic is locked and no more replies can be posted.