Hi guys,

i m working on matrimonial website.
now a days preparing admin panel for that...
in the admin panel when admin click on edit(here i m able to recieve id using $_GET),
another page opens lets call it showsuboptions, with three sub options
edit profile, edit desired profile, edit images

<a href='./index.php?_act=manageregister&DO=manageProfile&intUserID={$data[i].intUserID}'><span>Edit Profile</span></a>
<a href='./index.php?_act=manageregister&DO=manageDesiredProfile&intUserID={$data[i].intUserID}'><span>Edit Desired Profile</span></a>
<a href='./index.php?_act=manageregister&DO=manageImages&intUserID={$data[i].intUserID}'><span>Edit Images</span></a>

bt problem is that i m unable to recieve id which i m sending as shown above..

can anyone help?
thanks in advance

First, I'm not a PHP professional and please don't blame me if my suggestions aren't working, but maybe you should try this:

<a href="./index.php?_act=manageregister&DO=manageProfile&intUserID={$data[i].intUserID}"><span>Edit Profile</span></a>
<a href="./index.php?_act=manageregister&DO=manageDesiredProfile&intUserID={$data[i].intUserID}"><span>Edit Desired Profile</span></a>
<a href="./index.php?_act=manageregister&DO=manageImages&intUserID={$data[i].intUserID}"><span>Edit Images</span></a>

Using double-quotes instead of single ones ...

Does that help ?

no man. this does not make any sence...
no problem with quotes..
try to give better suggestions mr.tux.

try to give better suggestions mr.tux.

I think it has to do with some php-tags you should place in the <a href> tag, not sure where they have to be but you could try ...

i hv try it.. it doesnot work... i m sure problem is different not this.

-> First create a string variable called URL
-> Now we're adding all the content (the variables) to it to build up the entire URL ...
-> Inside the <a href> tag we use <?php echo URL;> to write the URL into the tag ...

Does this help ?

no man. u r again wrong..
i m using smarty... so there is no need to define <?php between <a href>..................

no man. u r again wrong..
i m using smarty... so there is no need to define <?php between <a href>..................

I said I'm not good at PHP,
I meant something like this:
#1:

<?php 
$URL = "./index.php?_act=manageregister&DO=manageProfile&intUserID=";
$URL .= $data[i].intUserID;
?>

#2:

<a href="<?php echo $URL; ?>"><span>Edit Profile</span></a>

Could you please try it?

do you want to put the data in the url?
personally i think it would be easier to put it into
sessions so you can move it back and forth alot
easier without having the data up top in the url

i hv try it.. it doesnot work... i m sure problem is different not this.

no man. u r again wrong..
i m using smarty... so there is no need to define <?php between <a href>..................

One of the rules that you should know

We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.

So please before your next post make sure you read our rules.

its still not working tux..
i hv tried it.

also i cant use sessions here bec. i am in admin panel.
and also i cant Use $_POST bec. here i am not posting any form.
i want a id which i can recieve only with $_GET..
anyone help me?

come on man i have already told you i cant use sessions here bec i am
in admin panel here session is always same as there is only one user which is admin.
r u getting to the point or not?

can you post your code after "showsuboptions" with 3 links.
and show us how you call the id inside your database.

This article has been dead for over six months. Start a new discussion instead.