|
Hi All, Was wondering if anyone knows of a script or way to have data entered into a text box added to an html string and return the result in a popup or the same page. so take this for example http://webmastertalk.com/images/(fill from text box).jpg In the text box users could enter " 54321 " and upon clicking a button the html link would change to: http://webmastertalk.com/images/54321.jpg and open the html link in a different window. Thanks in advance =P |
|
Not sure about HTML but you could certainly do it using PHP and Ajax. The PHP script would just be a self submitting form and would submit into the url. For instance;
Then you would %_GET the form and the URL would be something like this;
The examples above a very rough but you get the idea. Do a bit of research into PHP and Ajax and you'll be there in no time! |
|
HTML doesn't do things like that, to my knowledge. It's a markup language, not a programming language. HTML5 changes that a bit, but that's really because of the tighter integration of javascript. You could use javascript to evaluate the results of an html FORM data field, but it would still be JS doing the conditional logic. |
|
JavaScript that baby.
Where linkid is the ID of your hyperlink <a> tag. |
