Jump to content

Archived

This topic is now archived and is closed to further replies.

Cheap Commercial

send variable to text document

Recommended Posts

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

Share this post


Link to post
Share on other sites
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:
[code]<?php
// wow.php
$bob = $_GET['bob']; // retrieve variable passed by URL
echo $bob; // displays Poop in your example
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.