hi all, can anyone help me to resolve this issue.
I have this header scrip
$globe_id=$_GET['globe_id'];
header("location: globe_welcome.php?globe_id=".urlencode($globe_id));
It is not working properly.
When i am posting data through form is is not showing id in address bar.
Its result come like
http://mysite/more/globe_welcome.php?globe_id=
where i am wrong? can any body help me?
raovinesh
0
Light Poster
Recommended Answers
Jump to Post@raovinesh
I have this header scrip
$globe_id=$_GET['globe_id'];
header("location: globe_welcome.php?globe_id=".urlencode($globe_id));
It is not working properly.Do you have a
session_start();
?I'm a bit confused what you are asking?
Do you want the get the
$id
in here:
header("location: globe_welcome.php?globe_id=".urlencode($globe_id));
This is how do get the
$id
It should look …
Jump to Post@raovinesh
…No i am not working with sessions. It is just a simple work where i wanted to get information from my users in too forms.
When they are filling 1st form they are directed to 2nd form, but problem is that id is not showing at header
Jump to Post@raovinesh
dear nothing is more then this
just i used comnnection with server and used two feilds to post name and cat eilds of formI don't want to sound rude but this is all your code?
<?php mysql_query ("INSERT INTO globes (cat1, name) VALUES …
Jump to Post@raovinesh
Where is the
query
to select the$id
You need a
query
to select the$id
A
query
looks like this:
$sql = SELECT id FROM globes WHERE name="'$globe_id'";
Jump to Post@raovinesh
please guide me how i do ? because i am not good in php
I'm assisting you. So your goal is to get a
variable
into theheader
?So far that code you provided is what you are trying to do.
OK I have couple …
All 37 Replies
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
raovinesh
0
Light Poster
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
raovinesh
0
Light Poster
raovinesh
0
Light Poster
raovinesh
0
Light Poster
LastMitch
LastMitch
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.