Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Can i convert this VB.NET/PHP into HTML/PHP or JAVASCRIPT/PHP ?

Guys i want to convert this code "Write to text file from VB.NET" into Web Page code.
This is the code:
Code
Dim request As WebRequest = WebRequest.Create(WebServer.Text & "/writetotextfile.php?w=" & MyText.Text)
request.GetResponse()

I want to make application same as this one, but on the web (To have theese textboxes in html, and when i press Save, to write them into my text file.

This is the php code i used (from Eleqtriq tutorial)

Code
<?[h[
$msg = $_GET['w'];
$logfile = 'textfile.txt';
$fp = fopen($logfile, "a");
fwrite($fp, $msg);
fclose($fp);
?>

I know that this is possible but what language do websites use to do this"?

Do you know some methods to do this?
If you know, please help me.

I want to get result same as this one, but to post the data from the textboxes into a text file.
http://www.youtube.com/watch?v=sz1v5XduH...re=related

Thanks.
Just look up some tutorials it's really easy once you think about it, I highly suggest w3schools.
Go to php section dude. You will get help there. :)
[Image: ok2LiGx.jpg]
iindex.php
Code
<form action="process.php" method="get">
text to write: <input type="text" name="w" />
<input type="submit" />
</form>
process.php
Code
<?
$msg = $_GET['w'];
$logfile = 'textfile.txt';
$fp = fopen($logfile, "a");
fwrite($fp, $msg);
fclose($fp);


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersNov 11, 2025 09:42 AM 0 206 Nov 11, 2025 09:42 AM
Last Post: Hackers
[C#] by draxyeeMar 20, 2020 08:04 AM 0 137 Mar 20, 2020 08:04 AM
Last Post: draxyee
[Python] by BeyonderNov 19, 2019 02:54 AM 9 253 Nov 19, 2019 02:54 AM
Last Post: vorticalbox