• 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: what am i doing wrong - pls help asap

what am i doing wrong - pls help asap 16 years 2 months ago #6419

  • tcnrahul
  • tcnrahul's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I am posting the following code in the default value of a field - nothing happens - no results. When I call the value of the field on the thank you page or email - it is blank

I am new to php - must be missing something basic ? The exact text that I post is

//
$handle_cn = fopen("maychu.net/ip/name/".$_SERVER["REMOTE_ADDR"], 'r');
$country_name = fgets($handle_cn, 4096);
fclose($handle_cn);
return $country_name;
//


Thanks for helping.
The administrator has disabled public write access.

Re:what am i doing wrong - pls help asap 15 years 8 months ago #8202

  • demitra
  • demitra's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi,
I am also trying to put the country/ip in my returned emails.
I have followed the instructions from the documentation found here http://www.rsjoomla.com/customer-support/documentations/34-custom-scripting/103-display-the-country-from-which-the-form-is-being-submitted.html

i have added
//
 
$handle_cn = fopen("http://maychu.net/ip/name/".$_SERVER["REMOTE_ADDR"], 'r');
 
$country_name = fgets($handle_cn, 4096);
 
fclose($handle_cn);
 
return $country_name;
 
//

to the default value of the hidden field and then put the appropriate syntax in the email form but when the form comes back to me, this is written:

// $handle_cn = fopen(

Am I missing something or is this where at the bottom of the documentation says
Note:
Because various php configurations "fopen()" function might generate a error.

Is there a way to acheive this?
Many thanks!
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!