Preventing PHP script from loading the actual page
In my ActionScript 2 code it send the data to a php script but then loads the actual script into the browser which just shows a blank page. I don't want to load the processing script into the browser at all. How do I prevent this?
Here's my actionscript:
var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
fname2 = fname.text;
lname2 = lname.text;
var send_lv:LoadVars = new LoadVars();
send_lv.fname = fname.text;
send_lv.lname = lname.text;
send_lv.email = email.text;
send_lv.dept = dept.text;
send_lv.campus = campus.text;
send_lv.uaid = uaid.text;
send_lv.phone = phone.text;
send_lv.send("http://distance.uaf.edu/ferpa/process.php", "POST");
gotoAndStop("certificate");
submit_button.addEventListener("click", submitListener);
create a 2nd lv instance, use the sendAndLoad() method applied to send_lv and use your 2nd lv instance as the sendAndLoad() 2nd parameter:
var receiveLV:LoadVars=new LoadVars()
send_lv.sendAndLoad("xxxx.php",receiveLV,"POST");
p.s. if you want to parse the return from your php script, use the onLoad() or onData() methods applied to receiveLV.
Similar Messages
-
I need to prevent unauthorized users from accessing the application pages
Hi^^,
I have created an application in jsp and servlets. It has several pages like manager, supervisor accountant. I need to prevent unauthorised users from accessing these pages. In other words I need to implement a filter. Anyone who types a url other than that of the login page needs to be blocked. However I am not able to conceptualize the code that is going to be inside the doFilter() method. Please help
Sincerely,
PrashantHi^^,
I admit that there were some mistakes in the previous posting. I have corrected the mistakes and now there is going to be no compile time error. However when i put in the login id and the password it is redirecting me to the login page. I think that the front end jsp is directing the control to the controller servlet. But as "YOU" have pointed out in your previous post,
"by default requestDispatcher.forward(...) does not pass through the filter change. If the user requests the login page from their browser however, then they will still get the error message, which may not be appropriate."
I feel we need to somehow make the code pass through the requestDispatcher.forward(...) method of the servlet.
I am again posting the corrected code.
package com;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SecurityFilter implements Filter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException
HttpServletRequest req = (HttpServletRequest)request;
HttpServletResponse res = (HttpServletResponse)response;
String X = req.getRequestURI();
if(X.equals(http://localhost:8080/MyProject/LoginPage.jsp))
//writing code for passing through the filter
final class MyGenericFilter implements javax.servlet.Filter
public FilterConfig filterConfig;
public void doFilter( final ServletRequest request, final ServletResponse response, FilterChain chain) throws java.io.IOExeption, javax.servlet.ServletException
chain.doFilter(request,response);
public void init(final FilterConfig filterConfig)
this.filterConfig = filterConfig;
public void destroy()
else
HttpSession session = req.getSession();
String username = (String)session.getAttribute("username");
if(null==username)
request.setAttribute("Error","Session has ended. Please login");
RequestDispatcher rd = request.getRequestDispatcher("Login.jsp");
rd.forward(request,response);
chain.doFilter(request,response);
else
RequestDispatcher rd = request.getRequestDispatcher("X");
rd.forward(request,response);
public void init(final FilterConfig filterConfig)throws ServletException
public void destroy()
Edited by: pksingh79 on Aug 12, 2008 5:23 AM -
How can I prevent my tabs from loading the Tuvaro search page?
I have tried everything listed in the popular articles for this. Firefox shows my home page when I open it (yay!) but new tabs - tabs specifically - still default to the Tuvaro search engine. I have gone into "about:config" and reset the "browser.newtab.url" setting, and it works! But when I close Firefox and open it back up again, the string has been replaced on "Browser.newtab.url" and my tabs default to Tuvaro again. As stated previously, I've uninstalled ALL bloatware from my (brand new) computer, fixed the shortcuts, cleaned my registry, and reset firefox. This one detail just refuses to be fixed.
Thank you!Hello SkyeVeran, check if exist inside the "Programs" in windows, go from Start button > Control Panel > Programs > Uninstall a program or Program and Features > find it and uninstall, also uninstall any other unwanted suspicious program.
also, check if exist in your extensions, click the 3-bar menu button > Add-ons > Extensions or Appearance > select if exist as an add-on > click Remove button.
after the above, Reset Firefox
To Reset Firefox do the following:
#Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''.Now, a new tab containing your troubleshooting information should open.
#At the top right corner of the page, you should see a button that says "Reset Firefox"[[Image:Button reset]]. Click on it.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Thank you. -
Hi,
I'm getting error as adobe Illustrator crashes while loading the multiple pages PDF file.
Please help me. Thanks in advance.Hi Monika,
I have downloaded the script to load the multiple page of pdf file.
I tried loading the multiple page PDF file via File Menu -> Scripts -> Other Script...
After executing the script file -> Browse and enter the page number - > OK
The PDF file is looks like created from word document. There are total 120 pages in this file.
PDF file size is 20 MB.
I'm still searching for the solutions. Please help me.
Thanks,
Lavprasad -
Firefox 23.0.1 keeps loading the YouTube page and prevents access to My Profile
I do not know if this is a problem with the Firefox browser version 23.0.!But the problem of Firefox it keeps loading the YouTube page and even I can not do anything because there was a message saying still loading the YouTube page!
go to my topic http://support.emsisoft.com/topic/12328-strange-new-problem-in-access-to-youtube/here you go
Application Basics
Name
Firefox
Version
23.0.1
User Agent
Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
RealDownloader
1.3.3
true
{DF153AFF-6948-45d7-AC98-4FC4AF8A08E2}
Important Modified Preferences
Name
Value
browser.cache.disk.capacity
358400
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size.use_old_max
false
browser.cache.disk.smart_size_cached_value
358400
browser.places.smartBookmarksVersion
4
browser.startup.homepage_override.buildID
20130814063812
browser.startup.homepage_override.mstone
23.0.1
dom.mozApps.used
true
extensions.lastAppVersion
23.0.1
network.cookie.prefsMigrated
true
places.history.expiration.transient_current_max_pages
13196
plugin.disable_full_page_plugin_for_types
application/pdf
plugin.importedState
true
privacy.sanitize.migrateFx3Prefs
true
Graphics
Adapter Description
Mobile Intel(R) 945 Express Chipset Family
Adapter Drivers
igxprd32
Adapter RAM
Unknown
Device ID
0x27ae
Direct2D Enabled
Blocked for your graphics driver version.
DirectWrite Enabled
false (0.0.0.0)
Driver Date
2-15-2008
Driver Version
6.14.10.4926
GPU #2 Active
false
GPU Accelerated Windows
0/1 Basic
Vendor ID
0x8086
WebGL Renderer
Google Inc. -- ANGLE (Mobile Intel(R) 945 Express Chipset Family)
AzureCanvasBackend
skia
AzureContentBackend
none
AzureFallbackCanvasBackend
cairo
JavaScript
Incremental GC
true
Accessibility
Activated
false
Prevent Accessibility
0
Library Versions
Expected minimum version
Version in use
NSPR
4.10
4.10
NSS
3.15 Basic ECC
3.15 Basic ECC
NSSSMIME
3.15 Basic ECC
3.15 Basic ECC
NSSSSL
3.15 Basic ECC
3.15 Basic ECC
NSSUTIL
3.15
3.15 -
Hi,
My newest Apple TV which I bought on Amazon finally arrived and worked for 2 days. Now all of a suudden it is refusing to load the main page to select movies, radio, netflix etc. All I am getting is a page saying homesharing with only an option to select Computers of Settings. I have reset the Apple TV, restored it but nothing...it keeps going back to this page saying computers and settings. I've tried updating the software as well but after 30 minutes or so it tells me software update was unsuccessful and to go to settingsand choose restore and the loop begins? Is it permanently broken?I had the same issue Berry. What worked for me was going to the General Settings and doing a reset from there. I got all my apps back but had to re-enter all my information for iTunes, Netflix, Hulu etc...
Hope it works for you too! -
In version 8 the "stop loading the current page" icon is missing. How do I get it back?
I just installed version 8, and even though the features page says that the "stop loading the current page" will be a part of the default navigation toolbar, that icon is not on the toolbar. How do I get it to be there
In Firefox 4 and newer versions, the Go, Stop and Reload buttons are combined in one button at the right end of the URL or Address bar. The button changes depending on the activity:
*green Go arrow when typing in the address bar
*red Stop ("X") button while page is loading
*gray Reload (circular arrow) when page is finished loading.
See image at the bottom of this reply
Separate buttons are possible:
#Open Customize Toolbar window by clicking Firefox button > Option > Toolbar Layout '''''OR''''' clicking View > Toolbars > Customize if using the Menu Bar '''''OR''''' right-click in an empty space on a toolbar and choose Customize
#<u>While the Customize window is open</u>, Stop and Reload buttons will show separated between the address bar and the search bar
#<u>While the Customize window is open</u>, drag the buttons anywhere on the Navigation toolbar
#*order Reload-Stop will combine into one button
#**leaving in this order between URL/Location/Address bar and Search bar will cause it to re-combine with the "Go" button at the right end of the URL/Location/Address bar
#**leaving in this order elsewhere, the Reload and Stop buttons will combine into one button
#*order Stop-Reload will remain separate buttons
#*or drag a "Separator" from the Customize window between Reload-Stop and they will remain separate
#click Done at bottom right of Customize window to finish
See: https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
Not related to your question, but...
You may need to update some plug-ins. Check your plug-ins and update as necessary:
*Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
*Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
*Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
*Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
*Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox] -
Calling PHP scripts from iphone code...
I'm wondering how to best authenticate a PHP script, so that it will only run when called from a specific app...
A very simple way I was thinking of was to have a username/password written inside the objective c code...
So the PHP script checks that the username/password is valid (checks it against a table in a database)... Then runs the script...
However this seems very unsafe to me as the username/password can be packet sniffed, or so it seems to me... Is SSL my only option?
What is the best way to deal with this? Appreciate any feedback.Probably you can your question on the Eclipse plugin development forum:
[http://kenai.com/projects/eplugin|http://kenai.com/projects/eplugin]
[http://kenai.com/projects/eplugin2|http://kenai.com/projects/eplugin2] -
How does execute PHP Script from SAP?
I've already installed SAPRFC and run SAP Function from PHP successfully. But failed when tried execute PHP script from SAP (SM59). Anyone can help me for a clear instruction for this problem?
ThanksHi Max,
here is the Source:
[code]
#!/usr/bin/php -q
<?php
// SAPRFC - Server example
// PHP server function RFC_READ_REPORT
// Require: CGI version PHP, RFC destination defined in SAP R/3 (SM59)
// http://saprfc.sourceforge.net
// Interface definiton for RFC_READ_REPORT
// (generated by saprfc.php - option Generate PHP)
$DEF_RFC_READ_REPORT = array (
array (
"name"=>"SYSTEM",
"type"=>"EXPORT",
"optional"=>"0",
"def"=> array (
array ("name"=>"","abap"=>"C","len"=>8,"dec"=>0)
array (
"name"=>"TRDIR",
"type"=>"EXPORT",
"optional"=>"0",
"def"=> array (
array ("name"=>"NAME","abap"=>"C","len"=>40,"dec"=>0),
array ("name"=>"SQLX","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"EDTX","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"VARCL","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"DBAPL","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"DBNA","abap"=>"C","len"=>2,"dec"=>0),
array ("name"=>"CLAS","abap"=>"C","len"=>4,"dec"=>0),
array ("name"=>"TYPE","abap"=>"C","len"=>3,"dec"=>0),
array ("name"=>"OCCURS","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"SUBC","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"APPL","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"SECU","abap"=>"C","len"=>8,"dec"=>0),
array ("name"=>"CNAM","abap"=>"C","len"=>12,"dec"=>0),
array ("name"=>"CDAT","abap"=>"D","len"=>8,"dec"=>0),
array ("name"=>"UNAM","abap"=>"C","len"=>12,"dec"=>0),
array ("name"=>"UDAT","abap"=>"D","len"=>8,"dec"=>0),
array ("name"=>"VERN","abap"=>"C","len"=>6,"dec"=>0),
array ("name"=>"LEVL","abap"=>"C","len"=>4,"dec"=>0),
array ("name"=>"RSTAT","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"RMAND","abap"=>"C","len"=>3,"dec"=>0),
array ("name"=>"RLOAD","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"FIXPT","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"SSET","abap"=>"C","len"=>1,"dec"=>0),
array ("name"=>"SDATE","abap"=>"D","len"=>8,"dec"=>0),
array ("name"=>"STIME","abap"=>"C","len"=>6,"dec"=>0),
array ("name"=>"IDATE","abap"=>"D","len"=>8,"dec"=>0),
array ("name"=>"ITIME","abap"=>"C","len"=>6,"dec"=>0),
array ("name"=>"LDBNAME","abap"=>"C","len"=>20,"dec"=>0)
array (
"name"=>"PROGRAM",
"type"=>"IMPORT",
"optional"=>"0",
"def"=> array (
array ("name"=>"","abap"=>"C","len"=>40,"dec"=>0)
array (
"name"=>"QTAB",
"type"=>"TABLE",
"optional"=>"0",
"def"=> array (
array ("name"=>"LINE","abap"=>"C","len"=>72,"dec"=>0)
// Create list of PHP server functions
$GLOBAL_FCE_LIST[RFC_READ_REPORT] = saprfc_function_define(0,"RFC_READ_REPORT",$DEF_RFC_READ_REPORT);
// PHP server function
function RFC_READ_REPORT ($fce)
$REPORT = saprfc_server_import ($fce,"PROGRAM");
saprfc_table_init ($fce,"QTAB");
$fd = fopen ($REPORT,"r");
if (!$fd)
return ("NOTFOUND"); // raise exception "NOTFOUND"
while (!feof($fd))
$LINE = fgets ($fd,73);
saprfc_table_append ($fce,"QTAB",array("LINE"=>$LINE));
fclose ($fd);
saprfc_server_export ($fce,"SYSTEM","PHP");
return (true);
// Call script with: ./server.php -a phpgw -g hostname -x sapgw00
$rfc = saprfc_server_accept ($argv);
// Dispatch one function call
$rc = saprfc_server_dispatch ($rfc,$GLOBAL_FCE_LIST);
saprfc_close ($rfc);
?>
[/code]
Regards
Gregor
Message was edited by: Gregor Wolf -
Prevent iPhone Mail from loading images in HTML e-mails
Hello there!
Is it possible to prevent iPhone Mail from loading images in e-mails?
If yes, where can I change those settings?
Cheers,
ThomasIan, thanks for your quick reply.
I just hope Apple is going to build this feature into one of the next firmware updates, since from my point of view this is not only a security concern, but could turn out quite expensive if you are on a bad price plan. -
How to prevent multiple users from updating the same data in coherence
Hi,
I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
ThanksI have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.
-
I'm trying to set up my new iPhone using iCloud - I entered my apple ID and password and selected the backup to restore from but the next page asks me to enter a password for a DIFFERENT apple ID
What different Apple ID? Yours? Your friends? Your dogs... ? I think we are going to need more information. You're probably best setting up the phone as a new phone and restoring from iCloud later on.
-
Prevent a user from changing the Project ID in P6 EPPM 8.3.7
Does anyone know if there is a Global or Project Security Profile privilege that will prevent a user from changing the Project ID on an existing Project? We are using Primavera P6 EPPM 8.3.7
Thank you,
EricHi,
Below project security profile may help you,
Edit Project Details Except Costs/Financials
Determines whether the profile will enable users to edit fields in General, Dates, Defaults, Resources, and Settings tabs in Project Details. To assign a project baselines, users must also have the "Assign Project Baselines" project privilege assigned to their profile.
Regards,
Marcos -
I'm using FF for Mac 3.6.13 and every time I open a new window or tab the image of what I see is tiny which then requires me to click Command + to enlarge it about 4 or 5 times. The actual page is normal size, but its the image (what I see) of the page that is tiny.
Thanks but Command 0 on a Mac only makes a temporary change to that one page. The link you provided doesn't show how to make a permanent change. Do you know how to permanently change this so I don't have to do it to every new page?
Thank you. -
Want to open 2nd tab and have it load the home page which the first tab opens.
Want to open 2nd tab and have it load the home page which the first tab opens. The first tab opens Google's advance search, the second tab opens a blank window. I always want Google to be in a new page.
== This happened ==
Every time Firefox opened
== alwaysYou can look at one of these extensions:
NewTabURL : https://addons.mozilla.org/firefox/addon/2221
New Tab Homepage : https://addons.mozilla.org/firefox/addon/777
Maybe you are looking for
-
Generic object services - Object services toolbox not visible in ECC 6
We recently upgraded from SAP 4.6 C to ECC 6 and are encountering problems in the generic object services in Plant maintenance. We use this feature extensively in SAP 4.6 C to attach URL links, documents etc. In ECC6 , In Transaction IL02, IE02, IW32
-
Issue in uploading Employee Group and subgroup in LSMW
Hi Experts, I`m using LSMW to upload IT 1013 data thru transaction PP01. When i run the LSMW in forground mode , then everything seems to work fine. But when run in background mode, I find that the records are not getting uploaded and its giving m
-
HTTP Handler strange behavior when updating HR data
Hi there, Brief summary: Executing a function module from inside a HTTP Handler gives a different result than executing the function module direcly through SE37. The user defined for the SICF service calling the Handler is the same as the one we use
-
Some compatibility modes missing for certain exe's ??
Hi, I found that I can get the Xerox Phaser 5500 postscript driver not to crash in Vista x64 by flagging x2jobtAO.exe to use Windows 2003 Server Sp1 compatibility mode. However in Windows 7 x64 I can't do that but I can for other executables. Only
-
Hi All, I just want to know BI in oracle EBS. How to use this and what is the purpose for this, please advice Thanks