Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-06-2005, 02:11 AM   #1 (permalink)
 
Junior Techie

Join Date: Jan 2005

Posts: 68

Nikon

Send a message via AIM to Nikon
Default [php] Fake Post Data help

Ok lets use this as an example:
Inside Age.php:
Code:
<form action="action.php" method="post">
 

Your name: <input type="text" name="name" /></p>
 

Your age: <input type="text" name="age" /></p>
 

<input type="submit" /></p>
</form>
is a simple php script, asks for name/age with a simple submit button using method POST.

now inside action.php
Code:
Hi <?php echo $_POST['name']; ?>.
You are <?php echo $_POST['age']; ?> years old.
This will display the imputted values, now heres my question:
I wan't to fake the post data, i.e inserting via the URL or something close to that:
http://www.google.com/age.php?T2?13
and i wan't to be re-directed to action.php with:
Hi T2 your 13 years old.


If it cannot be implanted into the URL im sure it can be done a nother text based way, withou having to actually fill in the boxes.
Nikon is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On