farsiscript
Jun 10 2006, 09:32 PM
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=farsiscriptwhen page is displayed it show this text : Your name is : farsi and Your Trap username is : farsiscriptWith $_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
Jun 11 2006, 03:21 PM
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
Jun 18 2006, 10:17 PM
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
Similar Topics
Keywords : php, variables, url, forwarding, php, url, forwarding
- Google.com Not Forwarding To Google Uk!
(1)
Counting Variables?
(4) Write a php script that will accept a positive integer, if it is even, divide it by 2 and if it is
odd, multiply it by 3 and add 1. Repeat the process until the value is 1, printing out each value.
Finally print out how many of these operations you performed. If the input value is less than 1,
print error and perform an exit(); For example: Initial value: 9 Next value: 28 Next value: 14
Next value: 7 Next value: 22 Next value: 11 Next value: 34 Next value: 17 Next value: 52 Next
value: 26 Next value: 13 Next value: 40 Next value: 20 Next value: 10 Next value: 5 Nex....
Php Sessions And Post Variables Issues
My script dosent seem to work as intended (1) You can test it out for yourself at http://sonesay.trap17.com/application.php I've been
working on this page locally and it seems to be working fine but when I upload it to my trap17
account the post variables dont get saved properly. Fill in some fields and submit it, the form
will come up as a empty field yet when you resubmit it without any modifications and the data you
entered in orginally will now magically appear, resubmit it again and it will be gone. This is
really annoying as I have no clue why it would be doing this when it seems to work fine locally.....
C++ Lesson 2: Variables
Tutorial for C++ (0) As i said on other tutorial. This are tutorials from Gaianlurker on the New Engin3 forum. Alright,
this tutorial was going to be Variables and Functions, but that would just be massive so I broke it
down. Let's start with a basic program; CODE #include <iostream.h> //cin and cout
functions are here int main() { int a, b; cout<<"Welcome to
GaianLurker's basic math thingy."<<endl; cout<<"Please enter a
number."<<endl; cin>>a; cout<<".. and
another?"<<en....
Ti-basic: Solving Equations With Variables
Useful for Algebra (0) In this tutorial I will show you how to create a program that will solve a equation with variables
for you. There are some requirements though. Requirements A Ti-83 or better calculator
Knowledge of how to use the calculator Knowledge of where to find the functions A little Ti-BASIC
knowledge will be helpful Well lets get into it. Creating the Program First, we need to create
the program. Open up your program screen and create a new program. Name it something like EQSOLV.
Ok let's get started with the coding. WARNING: This program will use the followi....
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."
&....
How Do I
define variables in flash (3) were doing a course in ICT called multimedia, but i dont know how to define variables and whenever i
ask my teacher he always goes "were not that far yet" he doesn't even look at what i have
done, assumes I'm not finished, when i am, the only thing i need now is a scoring system....
Sending $_get[] Variables To An Application
(3) I'm trying to work out if it is possible to send variables to a application on server. E.g
send the variable of id which is equal to 10 to an application - test.exe?id=10 Any ideas to see if
this is possible?....
Web Mail Forwarding Not Working?
(0) I set up a several email accounts on Cpanel, and am trying to forward the mail from some of them to
a gmail address. So far nothing's been forwarded. Also, when composing email, I've noticed
the "receipt" function doesn't work. Any clues, anyone? On another note, I noticed Cpanel
reverted back to it's former state after a brief upgrade. What's the latest with Cpanel?
Several days later and still no response? /huh.gif" style="vertical-align:middle" emoid=":huh:"
border="0" alt="huh.gif" /> Mmkay, guess I'll pm admin directly.........
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....
How Do I Pass Php Variables From A Url To A Form?
I'm about read to tear my hair out with this one (5) Ok, what I need is for users to be able to select what address they want (e.g. mydomain + .com),
click submit that then sends the variables 'domain' and 'ext' through the URL e.g.
mywebsite.com/example.php?domain=mydomain&ext=com (the variables being mydomain and com) where they
are displayed in a form mail as "Domain Selected: mydomain.com" that can then be submitted and sent
to an email. In my form so far I have CODE <input name="domainname"
type="text" id="domainname" value ="<?php echo "$domain"; ?....
Destroying Variables In Javascript
Destroying variables in javascript (7) how do you delete the contents of a variable in javascript? Any ideas?....
Storing Session Variables Generated Dynamically
(3) i have many pool (quiz) modules on my site with the information taken from a database. The modules
are processed by the same function with different parameters and i need to save the pool's
status to prevent a user vote several times. I do this setting $_SESSION to 1 , variable
being the name of the quiz, which is taken from the database. So i get to having a code like this:
.................... $name= $row->quiz_name; $_SESSION =1 The problem is that if
i call $_SESSION from another part of the site (another page) the variable is al....
Php Application - Form Variables Not Being Passed
Tech Support did something to fix this problem. Very quick. (3) I'm trying to install an application, and it's not working. The programmer says that form
variables are not being passed between forms. This is a login application, so it has input like:
username: admin password: password The test (debug) program should return... LOGIN: Login
USERNAME: admin PASSWORD: password That will mean that variable are passed between forms. Since
right now it is not happening all you get is this: LOGIN: USERNAME: PASSWORD: Has anybody else
seen this? According to my programmer, this is a Server Admin (maybe configuration) problem ....
Redirecting Or Forwarding Subdomain To Domain
just a thought (5) In the future for when I get a top level domain, is it possible to keep my current trap17 subdomain
and have it forward to the new domain, just in case visitors do not know that the domain has
changed?....
Session Variables
Sessions in PHP behaving strangely (4) Hi. I am part of a development team working in PHP and MySQL. The site is using SSL, and users
have to log to use the site. When users log in, their important details are retrieved from the
database and stored in session variables (functionality in the site is permissions specific).
Lately, sessions are "disappearing" for no apparent reason. Users will log in, and at some point
(the length of time will vary unpredicatably) the sessions will lose their value (the variables are
empty) and this causes the site to evict the user. This is very frustrating for the user b....
Converting Characters In A Variable To Individual Values In An Array
turning variables into arrays (2) Say I have a variable such as $nav_item and it had to contents Home . IE: CODE
$nav_item = 'Home'; How would I make so that $nav_item was an array and
had the following contents? CODE $nav_item = array ('h', 'o',
'm', 'e'); With the case changing (ie H would become h and U
would become u ) EDIT: Okay found out that I could change the case with
array_change_key_case ($nav_item, CASE_LOWER); ....
Ssh And Port Forwarding
(0) Hello, Is it possible to port forward the mail port:110 with your server using ssh? Thanks in
advance for your answers.....
Enabling Port Forwarding Using Adsl Modem With Built-in Router
How to point traffick to computer behind the Prolink ADSL modem? (11) Dear all brothers and sisters, /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> I am now looking for help on How to point traffics to a computer behind the
Prolink ADSL modem I know that for traffick sending to computer behind router, we use the Port
Forwarding! However, i didn't see any Port Forwarding Section in my ADSL modem. Could
Anyone co....
Passing Variables Through A Page?
(4) I have a form that people fill out. Depending on what they fill out on that form, they get different
things on the page they're taken to after hitting "submit". Information from both pages goes
into a database. However, I don't want to create a new row until the second page has been
filled out and submitted (taking the user to a third page). Is there any easy way to pass all the
variables from the first page through the second and to the third? I know I can stick it all in
hidden inputs, but I have more than 60 form items to process, and I'd like to not have....
The Difference In Variables?
(3) Hi y have a cuestion what is the diference or INT.VAR AND CHAR.VAR thanks /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> ....
Transfer Variables To Another Php Script
(8) Hello, I've one registration page where the users fills in their information, is it possible to
trasnfer the things the fill in on the registration page to another script that does someting and
returnes something to the first page like true/false and then the registration gives an error
messange if the other php script returned false? Something like the script "activates" another
script that does something and returnes the result back to the original script. Best Regards ....
Url Forwarding
(2) URL forwarding is also called shot url. That is, use a short url to represent a long url. Thus less
alphabats will be typed for go to a target website. If you got a web hosting with the cpanel, you
may find the url forwarding. There are two popular ways to make a url forwarding. One uses a
subdirectory, and the other uses a subdirectory. When I first time knew the url forwarding, I was
interested in how it works. I think there are a lot of people who may be interested in to as me, so
I try to discuss that in the thread. When you have a cpanel, you may create a subdoma....
Dynamic web forwarding domain
(1) Could someone please tell me where i can get a free dynamic web forwarding domain like uni.cc. I
would use uni.cc but i cant register becose their servers are full
Edit. This is not the same as
.tk domains. tk domains are just forwarding domains....
masking/forwarding of second domain name ??
(4) I have 2 domain names, both identical but different tld's
How do I get the second one to point to
the first (forwarding/masking) ???....
Dumping Fields Into Variables
(1) have a file that we are supposed to use as input. It looks like this: Code:
name:curriculum:gradyear:ssn:dob I'm going to read it in a buffer, but trying to find the logic
to seperate the fields and then place in a variable. I was thinking something like: Code:
if(ispunct(buf ) != ':') strcpy(s->name, buf); Any suggestions is greatly
appreciated!....
Path Forwarding
It is good to use or not???????? (11) I am using .co.nr free domain for my website. And I have choosen path forwarding. (For example if
someone types www.mywebsite.co.nr/contact.html he will be directed to
www.mywebsite.trap17.com/contact.html ) . For this i have to change my all internal links to
mywebsite.co.nr/filename.html . Now i am feeliing that search engines are not indexing my all pages.
Is there any solution for that or I have to disable path forwarding and using internal links in my
source code???????????....
How Long Do $_post Variables Stay Stored?
(6) let's say that for whatever reason, let's say for a survey, i want to make a quiz like
w3schools.com has, only with PHP. i would want to put all the questions on different pages, also
like w3schools. could each of the submissions stay stored inside PHP's $_POST for 20
pages? if not, how could i get around it? PS. i really don't know anything about ASP other than
the fact that w3schools uses it. so please don't explain to me with ASP-specific terms.......
Website Building- E-mail Forwarding & Downloads
Response Forms & downloading zip files (9) Hi guys, Am new to designing. How do I : 1) include a popup form on my webpage for the visitor to
input info & have the info forwarded to my personal e-mail account (not trap17). 2) make links to
download files (ie. zip etc.) hosted on my website for ftp direct download to the visitors computer.
(You know, click a link & the file automatically downloads) Any info appreciated !!!
Tutorials ????????????????? Step by step info ???????????? Thanks in advance RGPHNX....
Help With Sql
Need values of some variables (1) i need to know this variables names: cfg : mysql-servername - ? cfg : mysql-username - ? cfg :
mysql-password - ? cfg : mysql-database-name - ? cfg : configuration-table - ? This
variables are to my chat script in php and to installe it i need to know what to put in each field.
Please help me with this?....
Looking for php, variables, url, forwarding, php, url, forwarding
|
|
Searching Video's for php, variables, url, forwarding, php, url, forwarding
|
advertisement
|
|