scottt
10-25-2014, 03:02 PM
hi all
im new to any kind of codeing and was wondering if any1 could help me out as this is a major part of my website.
also im using a website creator (Wix) as i dont really know coding
what im after doing is having a user input box that requires a reference number that i will be sending out with my products, when submitted i want it to take them to the relevant page e.g. my site is http://www.scotttaylor1989.wix.com/authenticproducts and say the reference number is 123456789 when submit is clicked i want it to take them to scotttaylor1989.wix.com/authenticproducts/123456789.
on the other hand say 987654321 is NOT a reference number and they enter it and click submit i want an alert to pop up saying invalid reference number.
below is what i have so far iv been searching the internet for days and cant find a solution (it might be the way im wording it)
<center><form name="RefChecker">
Reference Number: <input type="text" placeholder="Enter Reference Number" name="ref" />
<input type="submit" value="submit" onclick="gotoref()"/>
</form></center>
<script type="text/javascript">
function gotoref()
{
}
</script>
any help would be much appreciated ;)
im new to any kind of codeing and was wondering if any1 could help me out as this is a major part of my website.
also im using a website creator (Wix) as i dont really know coding
what im after doing is having a user input box that requires a reference number that i will be sending out with my products, when submitted i want it to take them to the relevant page e.g. my site is http://www.scotttaylor1989.wix.com/authenticproducts and say the reference number is 123456789 when submit is clicked i want it to take them to scotttaylor1989.wix.com/authenticproducts/123456789.
on the other hand say 987654321 is NOT a reference number and they enter it and click submit i want an alert to pop up saying invalid reference number.
below is what i have so far iv been searching the internet for days and cant find a solution (it might be the way im wording it)
<center><form name="RefChecker">
Reference Number: <input type="text" placeholder="Enter Reference Number" name="ref" />
<input type="submit" value="submit" onclick="gotoref()"/>
</form></center>
<script type="text/javascript">
function gotoref()
{
}
</script>
any help would be much appreciated ;)