Need to make a program

Associate
Joined
14 Jun 2009
Posts
1,568
Hello!:p

For my website when linking various pages via a drop down menu we use the following:

PHP:
<form style="margin: 0px; padding: 0px; text-align: center;">
<p style="text-align: center;">Page:</p>

<option selected="selected" value="URL">PAGE TITLE</option><br />

<option value="URL">PAGE NAME</option><br />

</select>
</form>
</div>

There's often 10+ options so doing it one by one is long process!

How easy would it be to make a peice of software that's 100% GUI whereby I could just type in the page names, URL's and choose which ones selected - then have it produce the required HTML?

Any help would be appreciated. I have no idea what to start, but was told I should use VB.net!
 
Last edited:
It's quite a simple matter to do that with php and sql. You need a table with the info you want and a php script to create the html at run time. Using phpMyAdmin gives you the GUI part for adding/changing the data.
 
How about a bit of javascript?
Code:
<html>
<script language="javascript">
function fnDisplay(msg){
var output;
output=document.getElementById('output');
output.innerHTML = output.innerHTML + msg;
}
function fnAdd(){
var Url;
var Pname;
var chk='';

Url=document.getElementById('URL').value;
Pname=document.getElementById('PageName').value;
if (document.getElementById('Checked').checked){
  chk='selected="selected"';
}
fnDisplay('&lt;option ' + chk + ' value="' + Url + '"&gt;' + Pname + '&lt;/option&gt;&lt;br /&gt;');

}

</script>
<body>
URL:&nbsp;<input type="text" ID="URL"></input><br/>
Page Name:&nbsp;<input type="text" ID="PageName"></input><br/>
Checked:&nbsp;<input type="checkbox" ID="Checked"></input><br/>
<input type="button" value="Add" onClick="fnAdd()"></input>
<hr/>
&lt;select&gt;
<span id=output></span><br/>
&lt;/select&gt;
</body>
</html>
 
Back
Top Bottom