Microsoft
Software
Hardware
Network
Question : adding a popup window to a PHP script on a text
Hi Team,
I wish add a pop-up window with my eshop site terms & conditions, pooped by clicking on a text link in the site registration page.
The site is php script e-commerce
The following java script do the job in html web page:
href="javascript:openpopup
('
http://w
ww.name-si
te.com/ter
ms.html'
)"
>terms & conditions
In html page a statement like "terms & conditions" might be used as the popup text link.Clicking.
PHP:
php definitions I used:
ENTRY_I_READ => "I hereby confirm that I read the site"
ENTRY_CONDITIONS => "Terms & Conditions"
ENTRY_CONFIRM => "and am accepting them"
I wish add the popup link to be applied on the words: "Terms & Conditions"
How can I add the java script to the php file in order to execute the popup instruction?
Thank you, ronig
The PHP script where I want this link to be added is looks like this:
//next is the radio button to confirm not relevant to my question
s', 'y') . '' . (tep_not_null(ENTRY_TERMS_
TEXT) ? '
'
. ENTRY_TERMS_TEXT . '
': ''); ?>
Thank you, roni
Answer : adding a popup window to a PHP script on a text
You would just store each site in a variable:
$termsEng = '
http://www.bivar-2.com/te
rmseng.htm
l'
;
$termsOther = '
http://www.bivar-2.com/te
rms.html'
;
Then based on whatever it is you are using to determine which lang, you subsititue the variable in the openpopup funciton call.
Random Solutions
How do you verify SSL cert is working on port 433?
URL Rewrite for ASP website for better search engine optimization
Help with integrating Paypal, notify_url and testing within the sandbox
500 points: In SSIS, how to pass parameters into Data Flow Task
Calculate a balloon payment
IE7 is no longer a windows update?
where can i sing up sor a public VPN service?
Exchange 2003 and Backup Exec 10 acces denied Top information store
global name 'do_traceroute' is not defined?
Bios can see HDD, XP Install can' t see HDD.