Friday, January 8, 2010

How can I add some coding to this PHP form to allow for a return device id or a return phone number?

My question is about this page ...





http://www.centennialwireless.com/sms/sms.php








The coding is such ...











%26lt;td class=';style1';%26gt;%26lt;b%26gt;Enter the 10-digit phone number you would like the message sent to:%26lt;/b%26gt;%26lt;br%26gt;%26lt;br%26gt;%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td class=';style1';%26gt; %26lt;input onfocus=';javascript:this.style.backgroun鈥?onblur=';javascript:this.style.background鈥?name = ';deviceid'; type = ';text'; value = ';'; size = ';10'; maxlength = ';10';%26gt;%26lt;span class=';style2';%26gt;(example: 2125559718)%26lt;/span%26gt;%26lt;/td%26gt;


%26lt;/tr%26gt;











The phone number that it is sending to is like this in the coding, (name = ';deviceid'; type = ';text';). How can I redo this page and insert the phone number that I want that person to be able to reply to? Like a device return id or something of this nature?How can I add some coding to this PHP form to allow for a return device id or a return phone number?
If you paste this code between the %26lt;/tr%26gt; of your snippet above and the next %26lt;TR%26gt;





// Star of Code:





%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td%26gt;聽%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr align=';left';%26gt;


%26lt;td class=';style1';%26gt;%26lt;b%26gt;Enter the 10-digit phone number you would like the reciever to reply back:%26lt;/b%26gt;%26lt;br%26gt;


%26lt;br%26gt;%26lt;/td%26gt;


%26lt;/tr%26gt;


%26lt;tr%26gt;


%26lt;td class=';style1';%26gt;%26lt;input name=';replyid'; type=';text'; id=';replyid'; style=';background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;'; onfocus=';javascript:this.style.backgroun鈥?onblur=';javascript:this.style.background鈥?value=';'; size=';10'; maxlength=';10';%26gt;


%26lt;span class=';style2';%26gt;(example: 2125559718)%26lt;/span%26gt;%26lt;/td%26gt;





// end of code





This will only solve half of your problems this will send the variable replyid to the next page. You will have to tell the next page what to do with it.

No comments:

Post a Comment