Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Forms View modes: 
User avatar
Member
Member
clive-innovativedesign.gb - 4/15/2010 9:00:18 AM
   
Forms
Hi Guys

I'm trying to add a normal form to a site [not a Bizform] this is the code I add:

<form method="post" id="call" action="http://domain.name/postcode-search.php">
<label>
<input name="imageField2" type="image" class="search-btn" id="imageField2" src="~/tbg/media/images/search-btn.jpg" />
</label>
<input name="search" type="text" class="search-field" id="search" />

But there seems to be 2 errors in doing this:

1. The URL seems to default to the page the form is on, e.g if the form is on defaul.aspx when I click the submit button it's redirected to default.aspx not the URL I have in the action of the form.

2. When I edit a page, non of the changes are saved.

All I really want to do is send the single text fields [search] data to a remote script.

What I'm I doing wrong, or is there another way to do this?

Many thanks

Clive

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/16/2010 7:19:17 AM
   
RE:Forms
Hi Clive,


The ASP.NET allows only one <form> tag on the page – it is the enveloping form which handles all ASP.NET page functionality.

If you need the second <form> for your purposes you could use the iFrames. Please use Google for more details, for example: http://www.15seconds.com/issue/030528.htm

I would also recommend you to consider the BizForms which could replace your custom form functionality. Please see here: BizForms documentation for more details.

You could also send data by query string in the URL.


Best regards,
Helena Grulichova

User avatar
Member
Member
clive-innovativedesign.gb - 4/16/2010 9:29:03 PM
   
RE:Forms
Hi Guys

Thanks for your reply Helena

I ended up using the iframe solution, which works pergect.

Many thanks


Clive