Jump to content


Photo

send variable to text document


  • Please log in to reply
2 replies to this topic

#1 Cheap Commercial

Cheap Commercial
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 13 May 2006 - 03:55 PM

hi there

what is the php script for a .php that will submit all info from varible to a .txt file

like
[a href=\"http://www.splices.org/test/wow.php?bob=Poop\" target=\"_blank\"]http://www.splices.org/test/wow.php?bob=Poop[/a]

and if i were to go to the txt it referes to i would see "poop" there

does that help at all??
thanx for your help

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 13 May 2006 - 04:38 PM

It's not clear to me what you really want to do or what this has to do with a text file.

If you have a link like [a href=\"http://www.splices.org/test/wow.php?bob=Poop\" target=\"_blank\"]http://www.splices.org/test/wow.php?bob=Poop[/a] and you wanted wow.php to display the value of the variable $bob, then this syntax will work in wow.php:
<?php
// wow.php
$bob = $_GET['bob']; // retrieve variable passed by URL
echo $bob; // displays Poop in your example
?>

Legend has it that reading the manual never killed anyone.
My site

#3 Cheap Commercial

Cheap Commercial
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 14 May 2006 - 06:43 AM

hahaha actually i found what ai needed from a cookie stealer.. odd but i still got it thanx anywayss




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users