MyLinkMarket Posted June 17, 2009 Share Posted June 17, 2009 I run a php based website that due to the programmer having a similiar site, no support or upgrades so doing them on my own...what a nightmare. I am trying to offer my customers a tinyurl clone type tool so my question is this. I have this page http://www.mylinkmarket.com/tinyurl.html which already has a nice form setup which i want to integrated an open source code i found. The problem is i don't understand the code from the link above as to how to change it. The program or code i want inserted is here. http://www.mylinkmarket.com/tinyurl/index.php - but my question is, how can i integrated the function into my existing form layout which is based on the code below but i don't have the php file for that code so i want to change it to the php file i do have which is the tinyurl/index.php code. This is the code for my existing form. On MyLinkMarket, now you can convert any long, hard to read links into readable, shorter URLs, or even you can hide your affiliate id when needed. <div><img src="skins/default/images/x.gif" width="1" height="10"></div> Enter URL: <div><img src="skins/default/images/x.gif" width="1" height="1"></div> <input name="fullurl" id="fullurl" onKeyDown="if ((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)) { this.form.fullurl.click(); return false; } else return true;" autocomplete="off" style="color:#AAAAAA; font-size:11px; width:596px;" value="http://www.mylinkmarket.com/index.php"> <input type="submit" name="tinyurlok" id="tinyurlok" value="Generate Tiny URL" onClick="tinyurlform.tinyurlok.value='Please Wait!';return true" style="font-size:11px; width:110px;"> <div><img src="skins/default/images/x.gif" width="1" height="1"></div> <input type="radio" name="method" id="method1" value="random" checked onClick="document.getElementById('method2kws').style.display='none'; document.getElementById('tinyurlresult').style.height='336px';"> <label for="method1" onClick="document.getElementById('method2kws').style.display='none'; document.getElementById('tinyurlresult').style.height='336px';">Random</label> <input type="radio" name="method" id="method2" value="keywords" onClick="document.getElementById('method2kws').style.display='block'; document.getElementById('tinyurlresult').style.height='295px';"> <label for="method2" onClick="document.getElementById('method2kws').style.display='block'; document.getElementById('tinyurlresult').style.height='295px';">Keywords</label> <div id="method2kws" style="display:none;"> <div><img src="skins/default/images/x.gif" width="1" height="5"></div> Enter <strong>at least one</strong> keyword to create a custom version of your URL: <div><img src="skins/default/images/x.gif" width="1" height="1"></div> <div style="font-size:11px; font-weight:bold;"> http://www.mylinkmarket.com/l-<input type="text" name="kw1" id="kw1" onKeyDown="if ((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)) { this.form.kw1.click(); return false; } else return true;" autocomplete="off" style="font-size:11px; width:75px;">-<input type="text" name="kw2" id="kw2" onKeyDown="if ((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)) { this.form.kw2.click(); return false; } else return true;" autocomplete="off" style="font-size:11px; width:75px;">-<input type="text" name="kw3" id="kw3" onKeyDown="if ((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)) { this.form.kw3.click(); return false; } else return true;" autocomplete="off" style="font-size:11px; width:75px;">-<input type="text" name="kw4" id="kw4" onKeyDown="if ((event.which&&event.which==13)||(event.keyCode&&event.keyCode==13)) { this.form.kw4.click(); return false; } else return true;" autocomplete="off" style="font-size:11px; width:75px;">.htm </div> Quote Link to comment https://forums.phpfreaks.com/topic/162603-need-some-php-coding-help/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.