pass value to perl file

Hello,

How to pass value to perl file? Normal way I ca do in php like this

<form method=post action=test.pl?

Using Yii what is the rule?

The same?

Not same. Bcz when browser call the pl file, it says "Do you want to open or save the file?" Without yii, no problem to see the passing value. Let me know if you have any answer.

Start with plain html (it works for me)




<form method="post" action="/cgi-bin/printenv">

or

<form method="post" action="/cgi-bin/retrieve.pl">



then if you want, you can try




<?php

 echo CHtml::beginForm(Yii::app()->urlManager->baseUrl.'/../cgi-bin/retrieve.pl');

 ...

 ...

 echo CHtml::endForm();


?>



Edit:

Should work with plain html controls generated from the Yii class CHtml. Check what’s sent to your browser.

/Tommy

Bingo!!!!!!!!!!!!!!!!!!!!!!!!

Working. THanks Buddy.

:)

Hello,

Now I can pass the value to perl(.pl) file. But the problem is, page is showing in http://abc.com/test.pl. I want the page in yii, like http://abc.com/site/test. Is there any way to do this.

THanks