Using get-VAR tags
In wapka, you have the option to transfer values from 1 page to another with easy to use wapka get-VAR tags.. With these tags you are able to transfer text, numbers,
form data and more. You can also use them for advance scripts (if you are advanced in HTML).. Lets learn these tags with examples as well as explainations!!
First of all, goto your admin mode and add two new pages via ES > NEW PAGE > note their site ID's For example, suppose that your first site issite_1and the other is site_2.. These ID's might be
different in your case! Now that you have created sites, lets go farward in our tutorial..
Now you can use get-var tags in many ways,
it depends on you what method you use that fullfill your script needs.. I'll
write few methods here, these will somehow clearify your mind and will make things easier than before..
URL METHOD:You can transfer value to another page via HTML
<a> tag.. Lets do it..
1. Open site_1
2. Goto ES
3. Clink WML/XHTML CODE link
4. Add following code
you can change NAME with any name/text/number you like, for
example: get-name=wapdon
5. Now goto site_2
6. Add following tag remove # from code
7. Now again goto site_1 and click link 'NAME'
8. In site_2 you will see the exact name you have set in url
9. You can set another variable name like get-myname instead of get-name but you must have the same variable names in site_1 and site_2, for example: if you used get-name in site_1 than you must have get-name also in site_2 to get transffered text..
0. if you will goto site_2 without clicking the link 'NAME' in site_1, you will see nothing!! Its because you have not transffered any value, to avoid this you can set default text which will be displayed if no value transffered.. Simply, instead of Remove # from code you can use
Remove # from code
1. When you will transfer numbers, you might like to protect your sites from hackers..i.e. You are using filelist tag and wanted to transffer file ID than hackers can easily edit your URL and can get to another file ID, to stop this simply use this Remove # from code
of Remove # from code 2. Try it now and transffer more text for practice!
More methods will be added very soon!
In wapka, you have the option to transfer values from 1 page to another with easy to use wapka get-VAR tags.. With these tags you are able to transfer text, numbers,
form data and more. You can also use them for advance scripts (if you are advanced in HTML).. Lets learn these tags with examples as well as explainations!!
First of all, goto your admin mode and add two new pages via ES > NEW PAGE > note their site ID's For example, suppose that your first site issite_1and the other is site_2.. These ID's might be
different in your case! Now that you have created sites, lets go farward in our tutorial..
Now you can use get-var tags in many ways,
it depends on you what method you use that fullfill your script needs.. I'll
write few methods here, these will somehow clearify your mind and will make things easier than before..
URL METHOD:You can transfer value to another page via HTML
<a> tag.. Lets do it..
1. Open site_1
2. Goto ES
3. Clink WML/XHTML CODE link
4. Add following code
you can change NAME with any name/text/number you like, for
example: get-name=wapdon
5. Now goto site_2
6. Add following tag remove # from code
7. Now again goto site_1 and click link 'NAME'
8. In site_2 you will see the exact name you have set in url
9. You can set another variable name like get-myname instead of get-name but you must have the same variable names in site_1 and site_2, for example: if you used get-name in site_1 than you must have get-name also in site_2 to get transffered text..
0. if you will goto site_2 without clicking the link 'NAME' in site_1, you will see nothing!! Its because you have not transffered any value, to avoid this you can set default text which will be displayed if no value transffered.. Simply, instead of Remove # from code you can use
Remove # from code
1. When you will transfer numbers, you might like to protect your sites from hackers..i.e. You are using filelist tag and wanted to transffer file ID than hackers can easily edit your URL and can get to another file ID, to stop this simply use this Remove # from code
of Remove # from code 2. Try it now and transffer more text for practice!
More methods will be added very soon!
0 comments:
Post a Comment