php to grab html attributes as well as hidden inputs
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:
<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>
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
Ask the Internet Marketing Geek <-- Happy to help with technical challenges
MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
- The AC Assassin
Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
- The AC Assassin
Do you want to make successes or excuses? Success? Alright then... See what's in store for you....
- The AC Assassin