Transfer Information Via Links With Php - Please Help!
kbjr
Mar 17 2008, 04:41 AM
I need to send a piece of information from one php page to another (kind of like a form). The thing is that I need the page to send a different piece of information based on what link is clicked. Something like this:
CODE
<a href="some code">Send Information 1</a> <a href="some other code">Send Information 2</a>
I don't know how to do this, so does anyone have any ideas?
You will need to study the PHP manual and learn about the "GET" method. start here
The basic are that you add a 'query string' to the URL in the Anchor tag, like so:
CODE
<a href="target_page.php?info=this_information">Send Information 1</a>
In the above example Anchor tag, "this_information" is the information being sent, and it is named "info" in the $_GET array. Then you need to write a php script that handles the information in the receiving file. The php.net site can be your best friend.
As slip said, you will probably have to read tutorials. Look up codes. If you don't know a function google it ex: "php if". That said, i might be able to help too.
It would probably be best to use a form "depending on the situation".
Say the name of the form is "form". You have a text field named "test". What you want to do is Post the information that has been entered into test to post.php. post.php the takes your information and processes it how you feel neccessary.
I want to design a map with a link related on each country of the map. If there is somebody who has
already done that, let help me to design it or give me a tutorial to train for it. Thanks to all
for your help....
Every once and a while we get stuck. Sometimes we don't even know where to start. As designers
we are free to be as creative as we can be but creativity sometimes runs low. The real problem is to
question creativity itself. What is it? In my personal opinion you need to feed your creativity with
new ideas to help it grow. Not only is it feeding your creativity, it's also fun to do!
Here's my sources of inspiration: Nature: I know, people say this all the time but its
true! Take a walk in the park or in the woods depending on where you live, take it i...
I am currently looking for affiliates for my site dontmaimyourself.trap17.com and thought this
would be the best place to start. If you are interested please e-mail me or pm or whatever. I
would appreciate it if you would use this button: or by pasting this code: CODE <a
href="http://www.dontmaimyourself.trap17.com"><img
src="http://www.dontmaimyourself.trap17.com/images/button.gif alt="Free Online
Games"></a> /biggrin.gif' border='0' style='vertical-align:middle'
alt='biggrin.gif' /> ...
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.