Jump to content

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
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.