# Help with ASP

**URL:** <https://forum.kirupa.com/t/help-with-asp/228576>\
**Category:** Uncategorized\
**Created:** [June 9, 2007, 3:22am UTC](https://forum.kirupa.com/t/help-with-asp/228576 "2007-06-09T03:22:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![satheesh\_vicky](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@satheesh\_vicky](https://forum.kirupa.com/u/satheesh_vicky)\
**Post date:** [June 9, 2007, 3:22am UTC](https://forum.kirupa.com/t/help-with-asp/228576/1 "2007-06-09T03:22:33Z")

</div>

**I am create a phone book in Flash 8.  
I want to send a data from Flash to PHP and PHP create txt file in data folder.  
I am create a PHP.  
Code like below:**

```php

<?php
$g_name=$_POST['sas_name'];
$g_number=$_POST['sas_number'];
$g_group=$_POST['sas_group'];
$text_dis="name=".$g_name."&contact=".$g_number."&group=".$g_group;
$filename="data/No1.sas"; 
$open=fopen($filename,'a+');
fwrite($open,$text_dis);
?> 

```

\*\*It work correctly on another server.

My server does not support PHP.  
So,I want to send a data from Flash to ASP and ASP create txt file in data folder.  
I am create a ASP.  
Code like below:\*\*

```auto

<%
	\'Dim variables
	Dim objFSO
	Dim objTextStream
	Dim PathFile
	\'Look for the path to current directory, change to match your directory based on root
	PathFile = Server.MapPath("/data/"&Request("sas_fn")&".sas")
	\'Create the filesystem Object
	set objFSO = createobject("Scripting.FileSystemObject")
	\'Open the file: if doesn\'t exists, create it
	  Set objTextStream = objFSO.OpenTextFile(PathFile, 2, True)
	\'Write to the data file
		  objTextStream.Write "name=" & Request("sas_name") & "&contact=" & Request("sas_number") & "&group=" & Request("sas_group")
	\'Clean objects
	 objTextStream.Close
	  Set objTextStream = Nothing
	  Set objFSO = Nothing
%>

```

**It is not work.  
Why?.**
