| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Driving me bonkers (simple PHP) Hello. Is it possible to take the end of a link e.g. .com/?id=123 and insert the '123' into the into a field of a registration page using PHP so I can log which users have referred others. Thanks.
__________________ C905 - Sony Ericsson mobile phone with an 8 megapixel camera! Last edited by noswad; 05-25-2006 at 09:08 PM. |
| |
| | #4 (permalink) |
| NamePros Regular | Hi I got this working at first by changing the code a little bit but for some reason I can't get it to work any more. Could anyone help me please? Its driving me nuts. David ![]() P.S. The field doesn't have to be hidden although I would prefer it to be
__________________ C905 - Sony Ericsson mobile phone with an 8 megapixel camera! Last edited by noswad; 05-25-2006 at 08:53 PM. |
| |
| | #5 (permalink) |
| NPQ's PA, Slave, and On Call Coder Technical Services | Merged your threads ![]() Really isn't that hard either.. and would suggest the same as xemiterx. PHP Code:
__________________ |
| |
| | #6 (permalink) |
| NamePros Regular | Excellent thanks. One little problem though - If register.php?id=[text] the form is submitting '0' but if the id=[numbers] it's submitting correctly. Any clues? Thanks again
__________________ C905 - Sony Ericsson mobile phone with an 8 megapixel camera! Last edited by noswad; 05-26-2006 at 04:40 AM. |
| |
| | #7 (permalink) |
| NPQ's PA, Slave, and On Call Coder Technical Services | Ok, I was assuming the 'id' was just numerical, well, you could do the following: PHP Code:
__________________ |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |