• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to load a form from an image link with PHP?

How to load a form from an image link with PHP? 15 years 1 week ago #7305

  • sanchez
  • sanchez's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
I don't know how to load a form with an image button in the same page

I'm using JUMI to pass variables, this code pass $article->title, open form page and all works ok.
<?php
$pg="<a href='index.php?option=com_rsform&Itemid=330&inf=".$article->title."'><img src='http://localhost/xxx/images/res.gif'></a>";
 
echo $pg;
?>

But I don't know how to load the form in the same article page with PHP
<a href='{rsform 1}'>
or
<a href='<?php echo{rsform 1};?>'>
Don't works for me.


Any suggestion?
Last Edit: 15 years 1 week ago by sanchez. Reason: add sample code
The administrator has disabled public write access.

Re:How to load a form from an image link with PHP? 15 years 1 week ago #7312

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello Sanchez,

you have to make sure that you installed the content plugin, in order to publish the form inside an article. After you installed it, make sure it's published, and then, type {rsform 1} inside your article.
The administrator has disabled public write access.

Re:How to load a form from an image link with PHP? 15 years 1 week ago #7316

  • sanchez
  • sanchez's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
The plugin is is installed.
My question was how to put this code in the "href" attributes in a link
<a href='<?php echo{rsform 1};?>'>Press here to register</a>
Last Edit: 15 years 1 week ago by sanchez. Reason: sintax
The administrator has disabled public write access.

Re:How to load a form from an image link with PHP? 15 years 1 week ago #7317

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello ,

If i understood correctly you want to link the form page. If this is correct try

<a href="index.php?option=com_rsform&formId=1">Click here to register</a>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:How to load a form from an image link with PHP? 15 years 1 week ago #7320

  • sanchez
  • sanchez's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Yes, thank you... but it is loaded in another page

I'm using TABS&SLIDES component. In the last TAB I would like to put a link to the form as you says... and it was loaded within the tab:
<a href="index.php?option=com_rsform&formId=1">Click here to register</a>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!