|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
mailing list....please help
I posted in the PHP forum but was told this is a better place???
so here goes... hello, i know basically, nothing about PHP so have done amazing to get this far...i think. i have been looking through some posts on here but it dosent make much sense to me. i copied some code and got it workng, but not how i would like it to. I am with unitedhosting.co.uk and have their bronze hosting package. With that packaging I get PHP list, and already i am confused. the page can be visited at http://www.motivesounds.com/test2.htm and this is the code from that page //////////////////////// <script language="Javascript" type="text/javascript"> var fieldstocheck = new Array(); fieldnames = new Array(); function checkform() { for (i=0;i<fieldstocheck.length;i++) { if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { alert("Please enter your "+fieldnames[i]); eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); return false; } } return true; } function addFieldToCheck(value,name) { fieldstocheck[fieldstocheck.length] = value; fieldnames[fieldnames.length] = name; } </script> <form method="post" action="http://www.motivesounds.com/phplist/lists/?p=subscribe" name="subscribeform"> <font size="2" face="Arial, Helvetica, sans-serif">Email: <input type="text" name="email" value = ""> <br> <br> Name:</font> <input type="text" name="attribute2" value = ""> <script language="Javascript" type="text/javascript">addFieldToCheck("attribute2","Name");</script> <input type="hidden" name="list[1]" value="signup" /> <br> <input type="submit" name="subscribe" value="Subscribe" onClick="return checkform();"> <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email Address");</script> </form> /////////////////////// 1))) what i want to do is get rid of the name field. i tried to delete the following line but it stopped working. /////////////////////// <script language="Javascript" type="text/javascript">addFieldToCheck("attribute2","Name");</script> ////////////////////// 2))) i do not like the page it takes you to after you subscribe, is there anyway of once the user has clicked subscribe they are taken back to my main page; www.motivesounds.com 3))) is there any way that the user can just be put straight onto my mailinglist without having to wait for a mail with an activation link, then click that link, then get another mail welcoming them? i am guessing there is a big risk that activation email might be sent to the junk email inbox and therefore i lose a potential customer to my record label. 4))) thank you so much in advance cheers mark drunkenmind@hotmail.com |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > mailing list....please help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|