Php Variables And Url Forwarding - Tutorial -> PHP/URL forwarding

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

Php Variables And Url Forwarding - Tutorial -> PHP/URL forwarding

farsiscript
hi all
this tutorial is about php get variable and url forwarding
you can move variable in url with php with out html form

make one page with this code :

CODE

<?php
$what = $_GET['what'];
$trap17 = $_POST['trap17'];
echo "Your name is : " . "$what" . "and Your Trap username is : " . "$trap17";
?>

save this file with name "name.php" then upload name.php at your hosting ,
then turn your browser at this url :
http://yoursite.trap17.com/name.php?what=f...p17=farsiscript
when page is displayed it show this text :


Your name is : farsi and Your Trap username is : farsiscript

With $_GET tag in php you can take variable form url
when you write search engine for your site this script can help you to get variable form url
for example do you see music web site ?

music website has this part :
A B C D E F G H I ................................................. Z
if you click at one of alphabet it show you albums with alphabet name
you can Get variable form url

for example for musc web site name.php :
CODE

<?php
$alfa = $_GET['alfa'];
echo "$alfa";
?>

then You must link A at your page to name.php with this action

<a href="name.php?alfa=A">A</a>

when visitors click at A in page name.php write A at page
you can make Mysql Search engine

I hope This tutorial Help you to get variable form url

 

 

 


Reply

BOAW
hey you seem to know alot about php coding, how long did it take for you to learn as much as you do now? did you just learn it by yourself or did you take a class?? because i myself would like to know how to set up phpscripts myself becuase i dont really understand much at all. i can only edit stuff i can understand abit.

Reply

farsiscript
thanks dear BOAW
so sorry iam late in posting because i had travel
I learing php with looking at script code and tutorials
i learn many thinks in trap17 forums . its really good programming forums .
thanks

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : php variables url forwarding php url forwarding

  1. Tricks With Php Variables - (10)
    You probably are thinking at this moment why I am posting some tricks with variables. Well, there
    are many useful things a variable can do for us. For one they can actually be used to create simple
    games. They also can be used to produce a random result in a page. Another great use is shoutboxes.
    Well here are some cool variable effects. Adding Multiple Strings We can use strings to create
    great effects. Example: CODE <?php $var1="Hello person.";
    $var2=str_replace("person","world",$var1); echo $var1."
    &...
  2. Ti-basic: Solving Equations With Variables - Useful for Algebra (0)
  3. Second Php Tutorial - Variables - (8)
    If you haven't read the first one, read it by clicking here . I got a lot of positive
    comments about my last tutorial. Do you guys think I should keep writitng these? Intro To PHP
    Tutorial 2 - Variables Released 4/06/07 By Chris Feilbach aka GhostRider Contact Info: E-mail:
    assembler7@gmail.com AIM: emptybinder78 Yahoo: drunkonmarshmellows Website:
    http://www.ghostrider.trap17.com It has been a very long time since I have released a tutorial.
    I've been quite busy working on my newest script for handling news (GAMES), and redesigning my
    webpage. This tu...



Looking for php, variables, url, forwarding, php, url, forwarding

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for php, variables, url, forwarding, php, url, forwarding

*MORE FROM TRAP17.COM*
advertisement



Php Variables And Url Forwarding - Tutorial -> PHP/URL forwarding



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE