PDA

View Full Version : Link to a script - can this work ?


songboy
08-24-2010, 12:52 AM
I've spent ages getting a javascript dropdown to function. The dropdown has two links. One link is offering the user (who has previously logged in and messed about a bit) the option to now add more songs to the site. I have some code which checks how many songs each person has added and this is triggered by a button in a different form elsewhere. What I thought I could do was link to this code ie in a php script from the dropdown link and then directly send the user to the relevant form page.
Can you 'leap frog' from a link straight to some code which works on the database and then sends the user to the relevant page ? I've found that it's sort of working but the session data (upon which the script relies) is not coming through (yes I have session start). This means they always end up at the same 'add song 1' form. When this form appears I also get an error message saying that a session has been started etc etc.
Can you successfully go from a link to a script and then to a relevant form ?
I'd be grateful for any pointers - thanks
Songboy

davidj
08-24-2010, 07:39 AM
contact me through skype to discuss (david.mark.jackson)

I need to visualise what your doing. Maybe there is a better way

songboy
08-26-2010, 12:25 AM
Skype David...we're still using bongos round here !
Once again I found the problem and (as usual) it's daft. I had this:

$writer_id=$_SESSION['writer_id'];

at the top of a script and then this:

$_SESSION['writer_id']=$writer_id;

further down the same script. When I (eventually) commented out the second reference to 'writer_id' the value transferred to the next page.
It's all part of the curve though so not to worry.
Thanks-
Songboy

davidj
08-26-2010, 10:07 AM
Skype David...we're still using bongos round here !


Hahaha...

Mint

Where are you from.... I was thinking Sunderland with a comment like that

Rob_Che
08-26-2010, 04:22 PM
Where are you from.... I was thinking Sunderland with a comment like that

haha......

songboy
08-26-2010, 11:00 PM
I'm from deepest Leicestershire - cows, meat pies and oil seed - that's it !