How I can paste into Drupal block following form:

<form action="translate.google.co.uk/translate?prev=hp&hl=en&sl=en&tl=pl&u=http://www.example.com">
...
</form>

Drupal filtering it and the form is going to: http://translate.google.co.uk/translate_t
It's possible to make clean form in block without any filtering?

Comments

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

You could try something like this:

$out = <<<EOF
<form action="translate.google.co.uk/translate?prev=hp&hl=en&sl=en&tl=pl&u=http://www.example.com">
...
</form>
EOF;

echo $out;

And set the input format to PHP code of course.

Please post back if that works for you.

- Arie

kenorb’s picture

Status: Postponed (maintainer needs more info) » Active

Unfortunately it doesn't work.
It the same type of content and probably all outout (if it's a html or generated via php) it's parsed as the whole thing somewhere in the core;/

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

Go to admin/settings/filters and edit the PHP code input format. Uncheck all filters except PHP evaluator and it should work (at least it does in my test setup)

How about that?

- Arie

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks like kenorb won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

kenorb’s picture

Title: Submiting the form is going somewhere else » Drupal changing my form in block even I've got Full HTML
Component: block.module » filter.module
Status: Closed (won't fix) » Active

I'll, but looking for some solution.
I think it's a problem, because I'm sending the post variable to google server, instead of original website, so I don't know if it's possible to post variables to original website and translate it using one form;/
So I think it was stupid question:)

kenorb’s picture

Title: Drupal changing my form in block even I've got Full HTML » Submiting the form is going somewhere else
Component: forms system » block.module
Status: Fixed » Closed (won't fix)

Status: Active » Closed (won't fix)