Forums

can't use action of this form

oosora 03 Apr, 2008
this is my form 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
GreyHead 03 Apr, 2008
Hi oosora,

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
Max_admin 04 Apr, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.