Hey all, I am working on a script that I am a bit stumped with at the moment. Coders block if you will.
php to grab html attributes as well as hidden inputs
9
Hey all,
I am working on a script that I am a bit stumped with at the moment. Coders block if you will.
Task at hand:
Provide a form for the user to post their auto responder form code in.
PHP to strip everything from the provided string except for the url in the action attribute of the form as well as the hidden inputs to be written to a file.
What I have:
I have the code to replace a marker with the required info but currently the user needs to strip away the excess html.
Sample form code to search:
Stripped down code to be added into file via str_replace:
Hope that helps describe what I am looking for. Thank you in advance for your help.
Sincerely;
Jay
I am working on a script that I am a bit stumped with at the moment. Coders block if you will.
Task at hand:
Provide a form for the user to post their auto responder form code in.
PHP to strip everything from the provided string except for the url in the action attribute of the form as well as the hidden inputs to be written to a file.
What I have:
I have the code to replace a marker with the required info but currently the user needs to strip away the excess html.
Sample form code to search:
Code:
<script language="JavaScript">
function checkSub(){
if (document.signup.email.value.indexOf('@', 0) == -1) {
alert("Please fill in your valid Email address.\nYour email should be in the following format: email@address.com")
document.signup.email.focus()
return false}
if (document.signup.fname.value == "") {
alert("Please fill in your First name.")
document.signup.fname.focus()
return false}
}</script><form action="http://norabots.com/ar/ar/optin.php" method="post" name="signup" onsubmit="return checkSub()"><input type=hidden name="action" value="addlead"><input type=hidden name="member" value="871"><input type=hidden name="auto" value="5402"><input type=hidden name="thankyou" value=""><table border=0 cellspacing=0 cellpadding=2><tr><td><font size="2" face="arial, verdana">First Name:</font></td><td><input type=text size=20 name="fname"></td></tr><tr><td><font size="2" face="arial, verdana">Email address:</font></td><td><input type=text size=20 name="email"></td></tr><tr><td></td><td align=center><input type="submit" value="Subscribe"></td></tr></table></form> Code:
http://norabots.com/ar/ar/optin.php <input type=hidden name="action" value="addlead"><input type=hidden name="member" value="871"><input type=hidden name="auto" value="5402"><input type=hidden name="thankyou" value="">
Sincerely;
Jay
- CarloD.
- theIMgeek
- jaybaker
- Manfred Ekblad
- [ 1 ] Thanks
- jaybaker
- jaybaker
- [ 1 ] Thanks
- Manfred Ekblad
Next Topics on Trending Feed
-
9