Home > Ajax, Javascript, PHP, Programming > Search String For Value + Link

Search String For Value + Link

June 30th, 2009

I need a page in which:

1. User will be asked for two pieces of data:

- User ID (a number)
- Embed code

2. User will click SUBMIT button and the output will be a clickable URL (returned on the same page via AJAX type function would be great) in this format:

This is your link: http://web.xat.com/report/unmod.php?u=IDofuser&n=Moderator&g=IDofChat

- Where IDofChat returns: 1913106 (or whatever number happens to be between “id=” and “&GroupName” of the embed code)

- Where IDofuser = user entered user ID

More info:

Sample EMBED code can be seen here:
http://xat.com/web_gear/chat/embed.php?id=1913106&GroupName=Help

Sample user interface:
- Step 1 -
Enter user ID: _____________
Paste chat code here: _____________
[submit]

-Step 2 -
Here is your link: _____________

3. If the link is invalid, meaning they’ve pasted the wrong code or user ID (i.e. if they paste a correct embed code it should find “id=” and “&GroupName”. Also, a valid user ID will only be numbers, no spaces), it should tell them so.

4. Script will also be SAFE. It should be programmed to keep someone from interacting with the server in a bad way; assuming that is even an issue.

Please let me know how long it will take and how much.


Search String For Value + Link

Comments are closed.
Bear